Skip to:
Content

bbPress.org

Changeset 5848


Ignore:
Timestamp:
07/15/2015 09:45:01 PM (6 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: Pass the currently logged in user ID when creating toolbar links. See #2713.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/loader.php

    r5847 r5848  
    260260            // not activated on a the root blog but on any child one
    261261            if ( ! bp_is_root_blog() ) {
    262                 $my_account_link       = bbp_get_user_profile_url();
    263                 $my_topics_link        = bbp_get_user_topics_created_url();
    264                 $my_replies_link       = bbp_get_user_replies_created_url();
    265                 $my_favorites_link     = bbp_get_favorites_permalink();
    266                 $my_subscriptions_link = bbp_get_subscriptions_permalink();
     262                $user_id               = bbp_get_current_user_id();
     263                $my_account_link       = bbp_get_user_profile_url( $user_id );
     264                $my_topics_link        = bbp_get_user_topics_created_url( $user_id );
     265                $my_replies_link       = bbp_get_user_replies_created_url( $user_id );
     266                $my_favorites_link     = bbp_get_favorites_permalink( $user_id );
     267                $my_subscriptions_link = bbp_get_subscriptions_permalink( $user_id );
    267268            } else {
    268269
Note: See TracChangeset for help on using the changeset viewer.