Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 02:45:59 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Replace direct references to $bp user domains with their functional equivalents. See #3994.

File:
1 edited

Legend:

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

    r5700 r5704  
    9797
    9898        /** Profiles Fallback *************************************************/
     99
    99100        if ( !bp_is_active( 'xprofile' ) ) {
    100101            $bp->profile->slug = 'profile';
     
    114115
    115116        if ( !bp_current_component() && bp_displayed_user_id() ) {
    116             $bp->current_component       = $bp->default_component;
     117            $bp->current_component = $bp->default_component;
    117118           
    118119            // Prepare for a redirect to the canonical URL
     
    148149
    149150            // User links
    150             $user_domain   = ( isset( $bp->displayed_user->domain ) )               ? $bp->displayed_user->domain               : $bp->loggedin_user->domain;
     151            $user_domain   = bp_displayed_user_domain() ? bp_displayed_user_domain() : bp_loggedin_user_domain();
    151152            $profile_link  = trailingslashit( $user_domain . $bp->profile->slug );
    152153
Note: See TracChangeset for help on using the changeset viewer.