Skip to:
Content

BuddyPress.org

Changeset 2389 for trunk/bp-friends.php


Ignore:
Timestamp:
01/21/2010 11:19:32 AM (16 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-friends.php

    r2381 r2389  
    7373        /* Add the subnav items to the friends nav item */
    7474        bp_core_new_subnav_item( array( 'name' => __( 'My Friends', 'buddypress' ), 'slug' => 'my-friends', 'parent_url' => $friends_link, 'parent_slug' => $bp->friends->slug, 'screen_function' => 'friends_screen_my_friends', 'position' => 10, 'item_css_id' => 'friends-my-friends' ) );
    75         bp_core_new_subnav_item( array( 'name' => __( 'Requests', 'buddypress' ), 'slug' => 'requests', 'parent_url' => $friends_link, 'parent_slug' => $bp->friends->slug, 'screen_function' => 'friends_screen_requests', 'position' => 20, 'user_has_access' => bp_is_home() ) );
     75        bp_core_new_subnav_item( array( 'name' => __( 'Requests', 'buddypress' ), 'slug' => 'requests', 'parent_url' => $friends_link, 'parent_slug' => $bp->friends->slug, 'screen_function' => 'friends_screen_requests', 'position' => 20, 'user_has_access' => bp_is_my_profile() ) );
    7676
    7777        if ( $bp->current_component == $bp->friends->slug ) {
    78                 if ( bp_is_home() ) {
     78                if ( bp_is_my_profile() ) {
    7979                        $bp->bp_options_title = __( 'My Friends', 'buddypress' );
    8080                } else {
Note: See TracChangeset for help on using the changeset viewer.