Changeset 9937 for trunk/src/bp-xprofile/bp-xprofile-loader.php
- Timestamp:
- 06/11/2015 07:03:00 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-loader.php
r9936 r9937 181 181 } 182 182 183 $slug = 184 $profile_link = trailingslashit( $user_domain . $this->slug ); 183 $access = bp_core_can_edit_settings(); 184 $slug = bp_get_profile_slug(); 185 $profile_link = trailingslashit( $user_domain . $slug ); 185 186 186 187 // Add 'Profile' to the main navigation 187 188 $main_nav = array( 188 189 'name' => _x( 'Profile', 'Profile header menu', 'buddypress' ), 189 'slug' => $ this->slug,190 'slug' => $slug, 190 191 'position' => 20, 191 192 'screen_function' => 'xprofile_screen_display_profile', … … 199 200 'slug' => 'public', 200 201 'parent_url' => $profile_link, 201 'parent_slug' => $ this->slug,202 'parent_slug' => $slug, 202 203 'screen_function' => 'xprofile_screen_display_profile', 203 204 'position' => 10 … … 209 210 'slug' => 'edit', 210 211 'parent_url' => $profile_link, 211 'parent_slug' => $ this->slug,212 'parent_slug' => $slug, 212 213 'screen_function' => 'xprofile_screen_edit_profile', 213 214 'position' => 20, 214 'user_has_access' => bp_core_can_edit_settings()215 'user_has_access' => $access 215 216 ); 216 217 … … 221 222 'slug' => 'change-avatar', 222 223 'parent_url' => $profile_link, 223 'parent_slug' => $ this->slug,224 'parent_slug' => $slug, 224 225 'screen_function' => 'xprofile_screen_change_avatar', 225 226 'position' => 30, 226 'user_has_access' => bp_core_can_edit_settings()227 'user_has_access' => $access 227 228 ); 228 229 }
Note: See TracChangeset
for help on using the changeset viewer.