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

WordPress Trac noreply at wordpress.org
Wed Aug 9 10:05: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 austinginder):

 I can confirm this bug. Had a customer website PHP fatal when upgrading to
 WordPress core 6.3. Downgrading to 6.2.2 is a workaround for the error.
 For my testing I ran the following in `wp shell`


 {{{
 get_users( [ 'orderby' => 'post_count', 'order' => 'DESC', 'who' =>
 'authors' ] );
 }}}

 With core v6.3 the `'who' => 'authors'` causes the fatal error. Works fine
 on version 6.2.2.

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


More information about the wp-trac mailing list