Changeset 2397 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 01/21/2010 03:47:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r2372 r2397 425 425 add_action( 'wp_ajax_joinleave_group', 'bp_dtheme_ajax_joinleave_group' ); 426 426 427 function bp_dtheme_ajax_close_notice() { 428 global $userdata; 429 430 if ( !isset( $_POST['notice_id'] ) ) { 431 echo "-1<div id='message' class='error'><p>" . __('There was a problem closing the notice.', 'buddypress') . '</p></div>'; 432 } else { 433 $notice_ids = get_usermeta( $userdata->ID, 'closed_notices' ); 434 435 $notice_ids[] = (int) $_POST['notice_id']; 436 437 update_usermeta( $userdata->ID, 'closed_notices', $notice_ids ); 438 } 439 } 440 add_action( 'wp_ajax_messages_close_notice', 'bp_dtheme_ajax_close_notice' ); 441 427 442 function bp_dtheme_ajax_messages_send_reply() { 428 443 global $bp; … … 460 475 add_action( 'wp_ajax_messages_send_reply', 'bp_dtheme_ajax_messages_send_reply' ); 461 476 462 function bp_dtheme_ajax_m arkunread() {477 function bp_dtheme_ajax_message_markunread() { 463 478 global $bp; 464 479 … … 473 488 } 474 489 } 475 add_action( 'wp_ajax_messages_markunread', 'bp_dtheme_ajax_m arkunread' );490 add_action( 'wp_ajax_messages_markunread', 'bp_dtheme_ajax_message_markunread' ); 476 491 477 492 function bp_dtheme_ajax_message_markread() { … … 488 503 } 489 504 } 490 add_action( 'wp_ajax_messages_markread', 'bp_dtheme_ajax_message s_markread' );505 add_action( 'wp_ajax_messages_markread', 'bp_dtheme_ajax_message_markread' ); 491 506 492 507 function bp_dtheme_ajax_messages_delete() {
Note: See TracChangeset
for help on using the changeset viewer.