Get out quick if we have been passed the ID of the 'logged out' user.
git-svn-id: https://develop.svn.wordpress.org/trunk@18689 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
44821916ca
commit
af72ac6ff5
@ -664,6 +664,10 @@ function get_blogs_of_user( $id, $all = false ) {
|
||||
return $blogs;
|
||||
}
|
||||
|
||||
// Logged out users can't have blogs
|
||||
if ( 0 === $id )
|
||||
return false;
|
||||
|
||||
$blogs = wp_cache_get( 'blogs_of_user-' . $id, 'users' );
|
||||
|
||||
// Try priming the new cache from the old cache
|
||||
|
Loading…
Reference in New Issue
Block a user