Changeset 2389 for trunk/bp-xprofile.php
- Timestamp:
- 01/21/2010 11:19:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r2381 r2389 169 169 * @uses bp_core_add_nav_default() Sets which sub navigation item is selected by default 170 170 * @uses bp_core_add_subnav_item() Adds a sub navigation item to a nav item 171 * @uses bp_is_ home() Returns true if the current user being viewed is equal the logged in user171 * @uses bp_is_my_profile() Returns true if the current user being viewed is equal the logged in user 172 172 * @uses bp_core_fetch_avatar() Returns the either the thumb or full avatar URL for the user_id passed 173 173 */ … … 186 186 187 187 if ( $bp->current_component == $bp->profile->slug ) { 188 if ( bp_is_ home() ) {188 if ( bp_is_my_profile() ) { 189 189 $bp->bp_options_title = __( 'My Profile', 'buddypress' ); 190 190 } else { … … 215 215 216 216 /* Don't show this menu to non site admins or if you're viewing your own profile */ 217 if ( !is_site_admin() || bp_is_ home() )217 if ( !is_site_admin() || bp_is_my_profile() ) 218 218 return false; 219 219 ?> … … 270 270 * 271 271 * @package BuddyPress Xprofile 272 * @uses bp_is_ home() Checks to make sure the current user being viewed equals the logged in user272 * @uses bp_is_my_profile() Checks to make sure the current user being viewed equals the logged in user 273 273 * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename) 274 274 */ … … 357 357 * 358 358 * @package BuddyPress Xprofile 359 * @uses bp_is_ home() Checks to make sure the current user being viewed equals the logged in user359 * @uses bp_is_my_profile() Checks to make sure the current user being viewed equals the logged in user 360 360 * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename) 361 361 */ … … 363 363 global $bp; 364 364 365 if ( !bp_is_ home() && !is_site_admin() )365 if ( !bp_is_my_profile() && !is_site_admin() ) 366 366 return false; 367 367 … … 432 432 check_admin_referer( 'bp_delete_avatar_link' ); 433 433 434 if ( !bp_is_ home() && !is_site_admin() )434 if ( !bp_is_my_profile() && !is_site_admin() ) 435 435 return false; 436 436
Note: See TracChangeset
for help on using the changeset viewer.