Changeset 6546 for trunk/bp-messages/bp-messages-actions.php
- Timestamp:
- 11/30/2012 11:49:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-actions.php
r6545 r6546 16 16 17 17 function messages_action_conversation() { 18 global $thread_id;19 18 20 19 if ( !bp_is_messages_component() || !bp_is_current_action( 'view' ) ) … … 50 49 51 50 function messages_action_delete_message() { 52 global $thread_id;53 51 54 52 if ( !bp_is_messages_component() || bp_is_current_action( 'notices' ) || !bp_is_action_variable( 'delete', 0 ) ) … … 75 73 76 74 function messages_action_bulk_delete() { 77 global $thread_ids;78 75 79 76 if ( !bp_is_messages_component() || !bp_is_action_variable( 'bulk-delete', 0 ) ) … … 85 82 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) ); 86 83 } else { 87 if ( !check_admin_referer( 'messages_delete_thread' ) ) 84 if ( !check_admin_referer( 'messages_delete_thread' ) ) { 88 85 return false; 86 } 89 87 90 if ( !messages_delete_thread( $thread_ids ) ) 88 if ( !messages_delete_thread( $thread_ids ) ) { 91 89 bp_core_add_message( __('There was an error deleting messages.', 'buddypress'), 'error' ); 92 else90 } else { 93 91 bp_core_add_message( __('Messages deleted.', 'buddypress') ); 92 } 94 93 95 94 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) );
Note: See TracChangeset
for help on using the changeset viewer.