[wp-trac] [WordPress Trac] #43391: WP_User_Query bug
WordPress Trac
noreply at wordpress.org
Fri Feb 23 14:06:33 UTC 2018
#43391: WP_User_Query bug
--------------------------+------------------------------
Reporter: zkingdesign | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.9.4
Severity: normal | Resolution:
Keywords: | Focuses: template
--------------------------+------------------------------
Comment (by zkingdesign):
This is the query I get, when I dump the $query variable
https://gist.github.com/zkingdesign/2cd5588cee6539427539f8baf34c8f38
Query:
{{{#!php
<?php
$args = array(
'fields' => array( 'ID', 'user_login', 'display_name' ),
'role' => 'expert',
'number' => $numPosts,
'offset' => $page > 1 ? $numPosts : 0,
'order' => 'DESC',
'orderby' => 'post_count'
);
$query = new WP_User_Query( $args );
var_dump($query);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43391#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list