Do only one empty check. Clean up whitespace. Props SergeyBiryukov. see #15458
git-svn-id: https://develop.svn.wordpress.org/trunk@18906 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3932ffbff8
commit
7af65a1402
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user