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-activity/bp-activity-loader.php

    r4378 r4381  
    9090        global $bp;
    9191
    92         // Stop if there is no user displayed
    93         if ( empty( $bp->displayed_user->id ) )
    94             return;
    95 
    96         // Determine user to use
    97         if ( !empty( $bp->displayed_user->domain ) )
    98             $user_domain = $bp->displayed_user->domain;
    99         else
    100             return;
    101            
    10292        // Add 'Activity' to the main navigation
    10393        $main_nav = array(
     
    10999            'item_css_id'         => $this->id
    110100        );
     101
     102        // Stop if there is no user displayed or logged in
     103        if ( !is_user_logged_in() && !isset( $bp->displayed_user->id ) )
     104            return;
     105
     106        // Determine user to use
     107        if ( isset( $bp->displayed_user->domain ) )
     108            $user_domain = $bp->displayed_user->domain;
     109        elseif ( isset( $bp->loggedin_user->domain ) )
     110            $user_domain = $bp->loggedin_user->domain;
     111        else
     112            return;
    111113
    112114        // User link
Note: See TracChangeset for help on using the changeset viewer.