Changeset 2389 for trunk/bp-core.php
- Timestamp:
- 01/21/2010 11:19:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r2381 r2389 332 332 * @uses bp_core_new_nav_item() Adds a navigation item to the top level buddypress navigation 333 333 * @uses bp_core_new_subnav_item() Adds a sub navigation item to a nav item 334 * @uses bp_is_ home() Returns true if the current user being viewed is equal the logged in user334 * @uses bp_is_my_profile() Returns true if the current user being viewed is equal the logged in user 335 335 * @uses bp_core_fetch_avatar() Returns the either the thumb or full avatar URL for the user_id passed 336 336 */ … … 369 369 370 370 if ( 'profile' == $bp->current_component ) { 371 if ( bp_is_ home() ) {371 if ( bp_is_my_profile() ) { 372 372 $bp->bp_options_title = __('My Profile', 'buddypress'); 373 373 } else { … … 426 426 global $bp, $wpdb; 427 427 428 if ( !is_site_admin() || bp_is_ home() || !$bp->displayed_user->id )428 if ( !is_site_admin() || bp_is_my_profile() || !$bp->displayed_user->id ) 429 429 return false; 430 430 … … 486 486 global $bp; 487 487 488 if ( !is_site_admin() || bp_is_ home() || !$bp->displayed_user->id )488 if ( !is_site_admin() || bp_is_my_profile() || !$bp->displayed_user->id ) 489 489 return false; 490 490
Note: See TracChangeset
for help on using the changeset viewer.