[wp-trac] [WordPress Trac] #57011: wp_list_authors is broken in WordPress 6.1
WordPress Trac
noreply at wordpress.org
Wed Mar 1 15:37:22 UTC 2023
#57011: wp_list_authors is broken in WordPress 6.1
--------------------------------------+-----------------------------
Reporter: lifeboat | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1.2
Component: Users | Version: 6.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"55444" 55444]:
{{{
#!CommitTicketReference repository="" revision="55444"
Users: Use a separate variable for the post counts query in
`wp_list_authors()`.
This avoids a collision if `wp_list_authors()` is called with the
`optioncount` parameter enabled, and the resulting array for the post
counts query contains a key that matches the ID of a user who does not
have any posts.
Follow-up to [54262].
Props peterwilsoncc, johnbillion, lifeboat, brookedot, thedaysse, Toru.
Fixes #57011.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57011#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list