Skip to:
Content

BuddyPress.org

Changeset 1900


Ignore:
Timestamp:
09/17/2009 08:53:48 PM (15 years ago)
Author:
apeatling
Message:

Fixing access to friend requests. Props GIGALinux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends.php

    r1878 r1900  
    7575    /* Add the subnav items to the friends nav item */
    7676    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' ) );
    77     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 ) );
     77    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() ) );
    7878   
    7979    if ( $bp->current_component == $bp->friends->slug ) {
Note: See TracChangeset for help on using the changeset viewer.