Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/12/2011 02:11:01 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Audit the usage of $bp->friends->slug. See #3325.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-loader.php

    r4586 r4647  
    103103        );
    104104
    105         $friends_link = trailingslashit( $bp->loggedin_user->domain . $bp->friends->slug );
     105        $friends_link = trailingslashit( $bp->loggedin_user->domain . bp_get_friends_slug() );
    106106
    107107        // Add the subnav items to the friends nav item
    108108        $sub_nav[] = array(
    109             'name' => __( 'Friendships', 'buddypress' ),
    110             'slug' => 'my-friends',
    111             'parent_url' => $friends_link,
    112             'parent_slug' => $bp->friends->slug,
     109            'name'            => __( 'Friendships', 'buddypress' ),
     110            'slug'            => 'my-friends',
     111            'parent_url'      => $friends_link,
     112            'parent_slug'     => bp_get_friends_slug(),
    113113            'screen_function' => 'friends_screen_my_friends',
    114             'position' => 10,
     114            'position'        => 10,
    115115            'item_css_id'     => 'friends-my-friends'
    116116        );
     
    120120            'slug'            => 'requests',
    121121            'parent_url'      => $friends_link,
    122             'parent_slug'     => $bp->friends->slug,
     122            'parent_slug'     => bp_get_friends_slug(),
    123123            'screen_function' => 'friends_screen_requests',
    124124            'position'        => 20,
Note: See TracChangeset for help on using the changeset viewer.