[wp-trac] [WordPress Trac] #43391: WP_User_Query bug

WordPress Trac noreply at wordpress.org
Fri Feb 23 14:01:23 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 chetan200891):

 I have tested with below query. It works fine for me. I am getting correct
 results.

 {{{#!php
 <?php
 $args = array(
         'fields' => array( 'ID', 'user_login', 'display_name' ),
         'role' => 'administrator',
         'number' => '10',
         'order' => 'ASC',
         'orderby' => 'post_count'
 );
 }}}

 Ref. [https://codex.wordpress.org/Class_Reference/WP_User_Query]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43391#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list