From 108e1d4e12a914e2b41e8a247033f66254b58aca Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 1 Dec 2013 11:57:31 +0000 Subject: [PATCH] Fetch only the required fields in confirm_delete_users(). props rodrigosprimo. fixes #25178. git-svn-id: https://develop.svn.wordpress.org/trunk@26499 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/network/users.php b/src/wp-admin/network/users.php index d13e5184d0..eb4a4de625 100644 --- a/src/wp-admin/network/users.php +++ b/src/wp-admin/network/users.php @@ -50,7 +50,7 @@ function confirm_delete_users( $users ) {

%s?" ), $delete_user->user_login ); ?>

$details ) { - $blog_users = get_users( array( 'blog_id' => $details->userblog_id ) ); + $blog_users = get_users( array( 'blog_id' => $details->userblog_id, 'fields' => array( 'ID', 'user_login' ) ) ); if ( is_array( $blog_users ) && !empty( $blog_users ) ) { $user_site = "{$details->blogname}"; $user_dropdown = "