Skip to:
Content

BuddyPress.org

Ticket #1253: friends-wrong-css-id.patch

File friends-wrong-css-id.patch, 1.2 KB (added by johnjamesjacoby, 15 years ago)

fix my-friends

  • bp-friends.php

     
    7575        $friends_link = $bp->loggedin_user->domain . $bp->friends->slug . '/';
    7676       
    7777        /* Add the subnav items to the friends nav item */
    78         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' ) );
     78        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' => 'my-friends' ) );
    7979        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() ) );
    8080       
    8181        if ( $bp->current_component == $bp->friends->slug ) {