Skip to:
Content

BuddyPress.org

Ticket #3873: bp-core-loader.php.patch

File bp-core-loader.php.patch, 520 bytes (added by lancehudson, 10 years ago)
  • bp-core-loader.php

     
    167167                $current_user            = wp_get_current_user();
    168168
    169169                // The user ID of the user who is currently logged in.
    170                 $bp->loggedin_user->id   = $current_user->ID;
     170                if( !empty( $current_user )
     171                        $bp->loggedin_user->id   = $current_user->ID;
    171172
    172173                /** Avatars ***********************************************************/
    173174