mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Move get() and set() methods from WP_Query to WP_Object_Query. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16018 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -374,12 +374,18 @@ class WP_User_Query extends WP_Object_Query {
|
||||
function __construct( $query = null ) {
|
||||
if ( !empty( $query ) ) {
|
||||
$this->query_vars = wp_parse_args( $query, array(
|
||||
'role' => '', 'blog_id' => $GLOBALS['blog_id'],
|
||||
'meta_key' => '', 'meta_value' => '', 'meta_compare' => '',
|
||||
'include' => array(), 'exclude' => array(),
|
||||
'blog_id' => $GLOBALS['blog_id'],
|
||||
'role' => '',
|
||||
'meta_key' => '',
|
||||
'meta_value' => '',
|
||||
'meta_compare' => '',
|
||||
'include' => array(),
|
||||
'exclude' => array(),
|
||||
'search' => '',
|
||||
'orderby' => 'login', 'order' => 'ASC',
|
||||
'offset' => '', 'number' => '', 'count_total' => true,
|
||||
'orderby' => 'login',
|
||||
'order' => 'ASC',
|
||||
'offset' => '', 'number' => '',
|
||||
'count_total' => true,
|
||||
'fields' => 'all',
|
||||
) );
|
||||
|
||||
@@ -1521,4 +1527,4 @@ function _wp_get_user_contactmethods( $user = null ) {
|
||||
return apply_filters( 'user_contactmethods', $user_contactmethods, $user );
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user