Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/17/2011 07:25:55 PM (13 years ago)
Author:
djpaul
Message:

Reverting r4281 (see #3191)

File:
1 edited

Legend:

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

    r4281 r4381  
    144144        global $bp;
    145145
    146         // Stop if there is no user displayed and not logged in
    147         if ( !is_user_logged_in() && empty( $bp->displayed_user->id ) )
    148             return;
    149 
    150146        // Add 'Profile' to the main navigation
    151147        if ( !bp_is_active( 'xprofile' ) ) {
     
    160156
    161157            // User links
    162             $user_domain   = ( !empty( $bp->displayed_user->domain ) )               ? $bp->displayed_user->domain               : $bp->loggedin_user->domain;
    163             $user_login    = ( !empty( $bp->displayed_user->userdata->user_login ) ) ? $bp->displayed_user->userdata->user_login : $bp->loggedin_user->userdata->user_login;
     158            $user_domain   = ( isset( $bp->displayed_user->domain ) )               ? $bp->displayed_user->domain               : $bp->loggedin_user->domain;
     159            $user_login    = ( isset( $bp->displayed_user->userdata->user_login ) ) ? $bp->displayed_user->userdata->user_login : $bp->loggedin_user->userdata->user_login;
    164160            $profile_link  = trailingslashit( $user_domain . $bp->profile->slug );
    165161
Note: See TracChangeset for help on using the changeset viewer.