[wp-trac] [WordPress Trac] #45105: wp_list_authors() performance issue. Queries for user data on authors with no posts
WordPress Trac
noreply at wordpress.org
Wed Apr 17 14:49:56 UTC 2019
#45105: wp_list_authors() performance issue. Queries for user data on authors with
no posts
------------------------------+--------------------------
Reporter: billerickson | Owner: ianbelanger
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.2
Component: Users | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: performance
------------------------------+--------------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"45235" 45235]:
{{{
#!CommitTicketReference repository="" revision="45235"
Users: In `wp_list_authors()`, check for author's post count before
getting author's metadata.
This significantly reduces the number of SQL queries when
`wp_list_authors()` is called on a site where the majority of users don't
have any posts, e.g. a membership site.
Props billerickson, ianbelanger, dswebsme.
Fixes #45105.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45105#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list