Changeset 13503 for trunk/src/bp-messages/screens/view.php
- Timestamp:
- 06/18/2023 04:11:04 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-messages/screens/view.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/screens/view.php
r13442 r13503 22 22 } 23 23 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 ); 24 $thread_id = (int) bp_action_variable( 0 ); 27 25 28 26 if ( empty( $thread_id ) || ! messages_is_valid_thread( $thread_id ) ) { … … 32 30 33 31 bp_core_redirect( 34 bp_loggedin_user_url( 35 array( 36 'single_item_component' => $custom_message_slug, 37 ) 38 ) 32 bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_get_messages_slug() ) ) ) 39 33 ); 40 34 } … … 52 46 53 47 bp_core_redirect( 54 bp_loggedin_user_url( 55 array( 56 'single_item_component' => $custom_message_slug, 57 ) 58 ) 48 bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_get_messages_slug() ) ) ) 59 49 ); 60 50 }
Note: See TracChangeset
for help on using the changeset viewer.