Changeset 5417 for trunk/bp-messages/bp-messages-actions.php
- Timestamp:
- 11/29/2011 11:06:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-actions.php
r5329 r5417 18 18 19 19 if ( !$thread_id || !messages_is_valid_thread( $thread_id ) || ( !messages_check_thread_access( $thread_id ) && !bp_current_user_can( 'bp_moderate' ) ) ) 20 bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() );20 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() ) ); 21 21 22 22 // Check if a new reply has been submitted … … 53 53 'position' => 40, 54 54 'user_has_access' => bp_is_my_profile(), 55 'link' => bp_displayed_user_domain() . bp_get_messages_slug() . '/view/' . (int) $thread_id55 'link' => trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/view/' . (int) $thread_id ) 56 56 ) ); 57 57 … … 69 69 70 70 if ( !$thread_id || !is_numeric( $thread_id ) || !messages_check_thread_access( $thread_id ) ) { 71 bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() );71 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) ); 72 72 } else { 73 73 if ( !check_admin_referer( 'messages_delete_thread' ) ) … … 80 80 bp_core_add_message( __('Message deleted.', 'buddypress') ); 81 81 } 82 bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() );82 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) ); 83 83 } 84 84 } … … 94 94 95 95 if ( !$thread_ids || !messages_check_thread_access( $thread_ids ) ) { 96 bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() );96 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) ); 97 97 } else { 98 98 if ( !check_admin_referer( 'messages_delete_thread' ) ) … … 104 104 bp_core_add_message( __('Messages deleted.', 'buddypress') ); 105 105 106 bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() );106 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) ); 107 107 } 108 108 }
Note: See TracChangeset
for help on using the changeset viewer.