Changeset 13503 for trunk/src/bp-settings/actions/general.php
- Timestamp:
- 06/18/2023 04:11:04 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/actions/general.php
r13443 r13503 51 51 $feedback = array(); // array of strings for feedback. 52 52 $user_id = bp_displayed_user_id(); // The ID of the user being displayed. 53 $settings_slug = bp_get_settings_slug(); 54 $path_chunks = array( 55 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $settings_slug, $settings_slug ), 56 ); 53 $path_chunks = array( bp_get_settings_slug() ); 57 54 58 55 // Nonce check. … … 235 232 236 233 // Set the URL to redirect the user to. 237 $path_chunks[ 'single_item_action'] = bp_rewrites_get_slug( 'members', 'member_' . $settings_slug . '_general', 'general' );238 $redirect_to = bp_displayed_user_url( $path_chunks);234 $path_chunks[] = 'general'; 235 $redirect_to = bp_displayed_user_url( bp_members_get_path_chunks( $path_chunks ) ); 239 236 240 237 /** … … 271 268 } 272 269 273 $settings_slug = bp_get_settings_slug(); 274 $path_chunks = array( 275 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $settings_slug, $settings_slug ) 276 ); 277 $redirect_to = bp_displayed_user_url( $path_chunks ); 270 $redirect_to = bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_settings_slug() ) ) ); 278 271 279 272 // Email change is being verified.
Note: See TracChangeset
for help on using the changeset viewer.