Changeset 13443 for trunk/src/bp-messages/actions/exit.php
- Timestamp:
- 03/31/2023 05:26:39 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/actions/exit.php
r13196 r13443 19 19 } 20 20 21 $thread_id = bp_action_variable( 1 ); 21 $thread_id = bp_action_variable( 1 ); 22 $path_chunks = bp_members_get_path_chunks( array( bp_get_messages_slug(), bp_current_action() ) ); 23 $redirect = bp_displayed_user_url( $path_chunks ); 22 24 23 25 if ( ! $thread_id || ! is_numeric( $thread_id ) || ! messages_check_thread_access( $thread_id ) ) { 24 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ));26 bp_core_redirect( $redirect ); 25 27 } else { 26 28 if ( ! check_admin_referer( 'bp_messages_exit_thread' ) ) { … … 35 37 } 36 38 37 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ));39 bp_core_redirect( $redirect ); 38 40 } 39 41 }
Note: See TracChangeset
for help on using the changeset viewer.