Changeset 13442 for trunk/src/bp-messages/actions/notices.php
- Timestamp:
- 03/27/2023 06:19:06 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/actions/notices.php
r13096 r13442 87 87 88 88 // Redirect. 89 $member_notices = trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() ); 90 $redirect_to = trailingslashit( $member_notices . 'notices' ); 89 $message_slug = bp_get_messages_slug(); 90 $custom_message_slug = bp_rewrites_get_slug( 'members', 'member_' . $message_slug, $message_slug ); 91 $redirect_to = bp_loggedin_user_url( 92 array( 93 'single_item_component' => $custom_message_slug, 94 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $message_slug . '_notices', 'notices' ), 95 ) 96 ); 91 97 92 98 bp_core_redirect( $redirect_to ); … … 132 138 133 139 // Redirect. 134 $redirect_to = trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() ); 140 $message_slug = bp_get_messages_slug(); 141 $custom_message_slug = bp_rewrites_get_slug( 'members', 'member_' . $message_slug, $message_slug ); 142 $redirect_to = bp_loggedin_user_url( 143 array( 144 'single_item_component' => $custom_message_slug, 145 ) 146 ); 135 147 136 148 bp_core_redirect( $redirect_to );
Note: See TracChangeset
for help on using the changeset viewer.