Make WordPress Core


Ignore:
Timestamp:
12/01/2013 11:57:31 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Fetch only the required fields in confirm_delete_users().

props rodrigosprimo.
fixes #25178.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/users.php

    r26368 r26499  
    5151                <?php
    5252                foreach ( (array) $blogs as $key => $details ) {
    53                     $blog_users = get_users( array( 'blog_id' => $details->userblog_id ) );
     53                    $blog_users = get_users( array( 'blog_id' => $details->userblog_id, 'fields' => array( 'ID', 'user_login' ) ) );
    5454                    if ( is_array( $blog_users ) && !empty( $blog_users ) ) {
    5555                        $user_site = "<a href='" . esc_url( get_home_url( $details->userblog_id ) ) . "'>{$details->blogname}</a>";
Note: See TracChangeset for help on using the changeset viewer.