[wp-trac] [WordPress Trac] #61097: Filter `wp_count_posts()` query before execution to avoid slow query
WordPress Trac
noreply at wordpress.org
Mon Sep 22 18:48:56 UTC 2025
#61097: Filter `wp_count_posts()` query before execution to avoid slow query
-------------------------------------------------+-------------------------
Reporter: rcorrales | Owner:
| westonruter
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Posts, Post Types | Version: 2.5
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests has-test- | Focuses:
info commit has-dev-note add-to-field-guide | performance
-------------------------------------------------+-------------------------
Comment (by westonruter):
In [changeset:"60792" 60792]:
{{{
#!CommitTicketReference repository="" revision="60792"
Posts, Post Types: Refactor preparation of query for `wp_count_posts()`.
Follow-up to [60788].
Props mukesh27, westonruter.
See #61097.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61097#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list