Fetch only the required fields in confirm_delete_users().
props rodrigosprimo. fixes #25178. Built from https://develop.svn.wordpress.org/trunk@26499 git-svn-id: http://core.svn.wordpress.org/trunk@26393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d37d97c9c0
commit
fd0885cf5b
|
@ -50,7 +50,7 @@ function confirm_delete_users( $users ) {
|
|||
<br /><fieldset><p><legend><?php printf( __( "What should be done with posts owned by <em>%s</em>?" ), $delete_user->user_login ); ?></legend></p>
|
||||
<?php
|
||||
foreach ( (array) $blogs as $key => $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 = "<a href='" . esc_url( get_home_url( $details->userblog_id ) ) . "'>{$details->blogname}</a>";
|
||||
$user_dropdown = "<select name='blog[$val][{$key}]'>";
|
||||
|
|
Loading…
Reference in New Issue