Changeset 13443 for trunk/src/bp-settings/actions/general.php
- Timestamp:
- 03/31/2023 05:26:39 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/actions/general.php
r13395 r13443 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 57 54 58 // Nonce check. … … 100 104 101 105 bp_update_user_meta( $user_id, 'pending_email_change', $pending_email ); 102 $verify_link = bp_displayed_user_domain() . bp_get_settings_slug() . '/?verify_email_change=' . $hash; 106 $verify_link = add_query_arg( 107 'verify_email_change', 108 $hash, 109 bp_displayed_user_url( $path_chunks ) 110 ); 103 111 104 112 // Send the verification email. … … 227 235 228 236 // Set the URL to redirect the user to. 229 $redirect_to = trailingslashit( bp_displayed_user_domain() . bp_get_settings_slug() . '/general' ); 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 ); 230 239 231 240 /** … … 262 271 } 263 272 264 $redirect_to = trailingslashit( bp_displayed_user_domain() . bp_get_settings_slug() ); 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 ); 265 278 266 279 // Email change is being verified.
Note: See TracChangeset
for help on using the changeset viewer.