Changeset 13503 for trunk/src/bp-xprofile/bp-xprofile-template.php
- Timestamp:
- 06/18/2023 04:11:04 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-xprofile/bp-xprofile-template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-template.php
r13484 r13503 408 408 409 409 // Build the form action URL. 410 $profile_slug = bp_get_profile_slug(); 411 $path_chunks = array( 412 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug, $profile_slug ), 413 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_edit', 'edit' ), 414 'single_item_action_variables' => array( bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_edit_group', 'group' ), $group->id ), 415 ); 416 $form_action = bp_displayed_user_url( $path_chunks ); 410 $form_action = bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_profile_slug(), 'edit', array( 'group', $group->id ) ) ) ); 417 411 418 412 /** … … 1129 1123 1130 1124 // Build the profile field group link. 1131 $profile_slug = bp_get_profile_slug(); 1132 $path_chunks = array( 1133 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug, $profile_slug ), 1134 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_edit', 'edit' ), 1135 'single_item_action_variables' => array( bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_edit_group', 'group' ), $groups[ $i ]->id ), 1136 ); 1137 $link = bp_displayed_user_url( $path_chunks ); 1125 $link = bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_profile_slug(), 'edit', array( 'group', $groups[ $i ]->id ) ) ) ); 1138 1126 1139 1127 // Add tab to end of tabs array. … … 1293 1281 */ 1294 1282 function bp_edit_profile_button() { 1295 $profile_slug = bp_get_profile_slug();1296 $path_chunks = array(1297 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug, $profile_slug ),1298 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_edit', 'edit' ),1299 );1300 1301 1283 bp_button( array( 1302 1284 'id' => 'edit_profile', … … 1304 1286 'must_be_logged_in' => true, 1305 1287 'block_self' => true, 1306 'link_href' => bp_displayed_user_url( $path_chunks),1288 'link_href' => bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_profile_slug(), 'edit' ) ) ), 1307 1289 'link_class' => 'edit', 1308 1290 'link_text' => __( 'Edit Profile', 'buddypress' ),
Note: See TracChangeset
for help on using the changeset viewer.