Changeset 13443 for trunk/src/bp-settings/actions/capabilities.php
- Timestamp:
- 03/31/2023 05:26:39 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/actions/capabilities.php
r13090 r13443 78 78 do_action( 'bp_settings_capabilities_after_save' ); 79 79 80 // Redirect to the root domain. 81 bp_core_redirect( bp_displayed_user_domain() . bp_get_settings_slug() . '/capabilities/' ); 80 $path_chunks = bp_members_get_path_chunks( array( bp_get_settings_slug(), 'capabilities' ) ); 81 $redirect = bp_displayed_user_url( $path_chunks ); 82 83 // Redirect to the settings capability page. 84 bp_core_redirect( $redirect ); 82 85 } 83 86 add_action( 'bp_actions', 'bp_settings_action_capabilities' );
Note: See TracChangeset
for help on using the changeset viewer.