From 2f40f0c6fcfda8f5f08fb0751c742975c810d819 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 6 Oct 2011 19:13:44 +0000 Subject: [PATCH] Do only one empty check. Clean up whitespace. Props SergeyBiryukov. see #15458 git-svn-id: http://svn.automattic.com/wordpress/trunk@18906 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 );