[wp-trac] [WordPress Trac] #59011: Fatal error on single-site get_users() under certain circumstances

WordPress Trac noreply at wordpress.org
Wed Aug 9 17:17:02 UTC 2023


#59011: Fatal error on single-site get_users() under certain circumstances
--------------------------------------+---------------------
 Reporter:  dd32                      |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.3.1
Component:  Users                     |     Version:  6.3
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by RavanH):

 Hi, confirmed with this in a plugin:

 {{{#!php
 get_users( array(
         'orderby'             => 'post_count',
         'order'               => 'DESC',
         'number'              => '1000',
         'fields'              => array( 'ID' ),
         'has_published_posts' => true,
         'who'                 => 'authors'
 ) );
 }}}

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


More information about the wp-trac mailing list