Changeset 4961 for trunk/bp-messages/bp-messages-actions.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-actions.php
r4902 r4961 16 16 17 17 $thread_id = (int)bp_action_variable( 0 ); 18 18 19 19 if ( !$thread_id || !messages_is_valid_thread( $thread_id ) || ( !messages_check_thread_access( $thread_id ) && !is_super_admin() ) ) 20 20 bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() ); … … 37 37 // Mark message read 38 38 messages_mark_thread_read( $thread_id ); 39 39 40 40 // Decrease the unread count in the nav before it's rendered 41 41 $name = sprintf( __( 'Messages <span>%s</span>', 'buddypress' ), bp_get_total_unread_messages_count() ); 42 42 43 43 $bp->bp_nav[$bp->messages->slug]['name'] = $name; 44 44 … … 67 67 68 68 $thread_id = bp_action_variable( 1 ); 69 69 70 70 if ( !$thread_id || !is_numeric( $thread_id ) || !messages_check_thread_access( $thread_id ) ) { 71 71 bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() );
Note: See TracChangeset
for help on using the changeset viewer.