Changeset 13442 for trunk/src/bp-messages/screens/view.php
- Timestamp:
- 03/27/2023 06:19:06 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/screens/view.php
r13395 r13442 22 22 } 23 23 24 $thread_id = (int) bp_action_variable( 0 ); 24 $thread_id = (int) bp_action_variable( 0 ); 25 $message_slug = bp_get_messages_slug(); 26 $custom_message_slug = bp_rewrites_get_slug( 'members', 'member_' . $message_slug, $message_slug ); 25 27 26 28 if ( empty( $thread_id ) || ! messages_is_valid_thread( $thread_id ) ) { … … 29 31 } 30 32 31 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() ) ); 33 bp_core_redirect( 34 bp_loggedin_user_url( 35 array( 36 'single_item_component' => $custom_message_slug, 37 ) 38 ) 39 ); 32 40 } 33 41 … … 42 50 } else { 43 51 bp_core_add_message( __( 'You do not have access to that conversation.', 'buddypress' ), 'error' ); 44 bp_core_redirect( trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() ) ); 52 53 bp_core_redirect( 54 bp_loggedin_user_url( 55 array( 56 'single_item_component' => $custom_message_slug, 57 ) 58 ) 59 ); 45 60 } 46 61 }
Note: See TracChangeset
for help on using the changeset viewer.