mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user