Skip to:
Content

BuddyPress.org

Changeset 2048


Ignore:
Timestamp:
10/22/2009 12:13:09 PM (16 years ago)
Author:
apeatling
Message:

Fixes #1263 props jjj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-core.php

    r2047 r2048  
    630630    );
    631631
     632    /***
     633     * If this nav item is hidden for the displayed user, and
     634     * the logged in user is not the displayed user
     635     * looking at their own profile, don't create the nav item.
     636     */
     637    if ( !$show_for_displayed_user && !bp_is_home() )
     638        return false;
     639       
    632640    /***
    633      * If we are not viewing a user, and this is a root component, don't attach the
    634      * default subnav function so we can display a directory or something else.
    635      */
     641     * If we are not viewing a user, and this is a root component, don't attach the
     642     * default subnav function so we can display a directory or something else.
     643     */
    636644    if ( bp_core_is_root_component( $slug ) && !$bp->displayed_user->id )
    637645        return;
Note: See TracChangeset for help on using the changeset viewer.