diff --git a/wp-includes/user.php b/wp-includes/user.php index bd8304365f..2b0425a677 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -683,11 +683,9 @@ function get_blogs_of_user( $id, $all = false ) { if ( false === $blogs ) { $userkeys = get_user_meta( (int) $id ); - if ( empty( $userkeys ) ) - return false; - $userkeys = array_keys( $userkeys ); if ( empty( $userkeys ) ) return false; + $userkeys = array_keys( $userkeys ); $blogs = $match = array(); $prefix_length = strlen( $wpdb->base_prefix );