Changeset 13443 for trunk/src/bp-xprofile/screens/edit.php
- Timestamp:
- 03/31/2023 05:26:39 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/screens/edit.php
r13393 r13443 21 21 } 22 22 23 $profile_slug = bp_get_profile_slug(); 24 $path_chunks = array( 25 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug, $profile_slug ), 26 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_edit', 'edit' ), 27 ); 28 29 23 30 // Make sure a group is set. 24 31 if ( ! bp_action_variable( 1 ) ) { 25 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit/group/1' ) ); 32 $path_chunks['single_item_action_variables'] = array( bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_edit_group', 'group' ), 1 ); 33 bp_core_redirect( bp_displayed_user_url( $path_chunks ) ); 26 34 } 27 35 … … 43 51 // Check we have field ID's. 44 52 if ( empty( $_POST['field_ids'] ) ) { 45 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit/group/' . bp_action_variable( 1 ) ) ); 53 $path_chunks['single_item_action_variables'] = array( bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_edit_group', 'group' ), bp_action_variable( 1 ) ); 54 bp_core_redirect( bp_displayed_user_url( $path_chunks ) ); 46 55 } 47 56 … … 156 165 157 166 // Redirect back to the edit screen to display the updates and message. 158 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit/group/' . bp_action_variable( 1 ) ) ); 167 $path_chunks['single_item_action_variables'] = array( bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_edit_group', 'group' ), bp_action_variable( 1 ) ); 168 bp_core_redirect( bp_displayed_user_url( $path_chunks ) ); 159 169 } 160 170 }
Note: See TracChangeset
for help on using the changeset viewer.