Skip to:
Content

BuddyPress.org

Changeset 2389 for trunk/bp-core.php


Ignore:
Timestamp:
01/21/2010 11:19:32 AM (15 years ago)
Author:
apeatling
Message:

Fixed issues with the listing of hidden groups when you are logged in. Switched all references of bp_is_home() to the more appropriate bp_is_my_profile().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r2381 r2389  
    332332 * @uses bp_core_new_nav_item() Adds a navigation item to the top level buddypress navigation
    333333 * @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 user
     334 * @uses bp_is_my_profile() Returns true if the current user being viewed is equal the logged in user
    335335 * @uses bp_core_fetch_avatar() Returns the either the thumb or full avatar URL for the user_id passed
    336336 */
     
    369369
    370370        if ( 'profile' == $bp->current_component ) {
    371             if ( bp_is_home() ) {
     371            if ( bp_is_my_profile() ) {
    372372                $bp->bp_options_title = __('My Profile', 'buddypress');
    373373            } else {
     
    426426    global $bp, $wpdb;
    427427
    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 )
    429429        return false;
    430430
     
    486486    global $bp;
    487487
    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 )
    489489        return false;
    490490
Note: See TracChangeset for help on using the changeset viewer.