[wp-trac] [WordPress Trac] #63004: Allow `count_many_users_posts()` to be short-circuited

WordPress Trac noreply at wordpress.org
Sun Mar 2 23:04:38 UTC 2025


#63004: Allow `count_many_users_posts()` to be short-circuited
------------------------------+------------------------------------------
 Reporter:  ethitter          |       Owner:  jorbin
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  6.8
Component:  Users             |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  administration, performance
------------------------------+------------------------------------------
Changes (by peterwilsoncc):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59900" 59900]:
 {{{
 #!CommitTicketReference repository="" revision="59900"
 Users: Add pre-flight filter to `count_many_users_posts()`.

 Introduces the filter `pre_count_many_users_posts()` to allow developers
 to bypass the function in favour of either avoiding counts or their own
 counting functionality.

 Props audrasjb, ethitter, jigar-bhanushali, jorbin.
 Fixes #63004.
 }}}

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


More information about the wp-trac mailing list