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

WordPress Trac noreply at wordpress.org
Wed Aug 9 02:19:44 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 dd32):

 I was slightly wrong in my initial understanding of this issue.

 This is specific to single-site with `post_count` and using the deprecated
 `who=authors`.

 The problematic `blog_id = 0` is mostly triggered from here it seems:
 https://github.com/WordPress/wordpress-
 develop/blob/f7fbd0c25f6824f7259dbca47b38c6569901baf5/src/wp-includes
 /class-wp-user-query.php#L415-L417

 See the PR for unit tests and patch.

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


More information about the wp-trac mailing list