Changeset 9936 for trunk/src/bp-xprofile/bp-xprofile-template.php
- Timestamp:
- 06/11/2015 06:53:59 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-template.php
r9819 r9936 522 522 * profile group edit form. 523 523 */ 524 return apply_filters( 'bp_get_the_profile_group_edit_form_action', trailingslashit( bp_displayed_user_domain() . $bp->profile->slug. '/edit/group/' . $group->id ) );524 return apply_filters( 'bp_get_the_profile_group_edit_form_action', trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit/group/' . $group->id ) ); 525 525 } 526 526 … … 1029 1029 1030 1030 // Build the profile field group link 1031 $link = trailingslashit( bp_displayed_user_domain() . b uddypress()->profile->slug. '/edit/group/' . $groups[ $i ]->id );1031 $link = trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit/group/' . $groups[ $i ]->id ); 1032 1032 1033 1033 // Add tab to end of tabs array … … 1136 1136 } 1137 1137 function bp_get_avatar_delete_link() { 1138 $bp = buddypress();1139 1138 1140 1139 /** … … 1145 1144 * @param string $value Nonced URL used for deleting an avatar. 1146 1145 */ 1147 return apply_filters( 'bp_get_avatar_delete_link', wp_nonce_url( bp_displayed_user_domain() . $bp->profile->slug. '/change-avatar/delete-avatar/', 'bp_delete_avatar_link' ) );1146 return apply_filters( 'bp_get_avatar_delete_link', wp_nonce_url( bp_displayed_user_domain() . bp_get_profile_slug() . '/change-avatar/delete-avatar/', 'bp_delete_avatar_link' ) ); 1148 1147 } 1149 1148 1150 1149 function bp_edit_profile_button() { 1151 $bp = buddypress();1152 1153 1150 bp_button( array( 1154 1151 'id' => 'edit_profile', … … 1156 1153 'must_be_logged_in' => true, 1157 1154 'block_self' => true, 1158 'link_href' => trailingslashit( bp_displayed_user_domain() . $bp->profile->slug. '/edit' ),1155 'link_href' => trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit' ), 1159 1156 'link_class' => 'edit', 1160 1157 'link_text' => __( 'Edit Profile', 'buddypress' ),
Note: See TracChangeset
for help on using the changeset viewer.