Changeset 2055 for trunk/bp-core.php
- Timestamp:
- 10/26/2009 05:31:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r2035 r2055 66 66 if ( !defined( 'BP_HOME_BLOG_SLUG' ) ) 67 67 define( 'BP_HOME_BLOG_SLUG', 'blog' ); 68 69 /* Register BuddyPress themes contained within the theme folder */ 70 if ( function_exists( 'register_theme_folder' ) ) 71 register_theme_folder( 'buddypress/bp-themes' ); 68 72 69 73 … … 626 630 ); 627 631 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 628 640 /*** 629 * If we are not viewing a user, and this is a root component, don't attach the630 * 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 */ 632 644 if ( bp_core_is_root_component( $slug ) && !$bp->displayed_user->id ) 633 645 return;
Note: See TracChangeset
for help on using the changeset viewer.