`WP_User_Query`: When querying users with 'fields=all', ensure that caps and roles are filled for the current site.

See [15566] for a parallel fix for 'fields=all_with_meta'.

Fixes #31878.
Built from https://develop.svn.wordpress.org/trunk@32001


git-svn-id: http://core.svn.wordpress.org/trunk@31980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2015-04-03 14:14:57 +00:00
parent 23dbacdb4c
commit 820b895cf6
2 changed files with 2 additions and 2 deletions

View File

@ -857,7 +857,7 @@ class WP_User_Query {
$this->results = $r;
} elseif ( 'all' == $qv['fields'] ) {
foreach ( $this->results as $key => $user ) {
$this->results[ $key ] = new WP_User( $user );
$this->results[ $key ] = new WP_User( $user, '', $qv['blog_id'] );
}
}
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-beta4-32000';
$wp_version = '4.2-beta4-32001';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.