Skip to:
Content

BuddyPress.org

Changeset 2055 for trunk/bp-core.php


Ignore:
Timestamp:
10/26/2009 05:31:43 PM (15 years ago)
Author:
apeatling
Message:

Merging 1.1 branch with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r2035 r2055  
    6666if ( !defined( 'BP_HOME_BLOG_SLUG' ) )
    6767    define( 'BP_HOME_BLOG_SLUG', 'blog' );
     68   
     69/* Register BuddyPress themes contained within the theme folder */
     70if ( function_exists( 'register_theme_folder' ) )
     71    register_theme_folder( 'buddypress/bp-themes' );
    6872
    6973
     
    626630    );
    627631
     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       
    628640    /***
    629      * If we are not viewing a user, and this is a root component, don't attach the
    630      * default subnav function so we can display a directory or something else.
    631      */
     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     */
    632644    if ( bp_core_is_root_component( $slug ) && !$bp->displayed_user->id )
    633645        return;
Note: See TracChangeset for help on using the changeset viewer.