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

WordPress Trac noreply at wordpress.org
Sun Mar 2 21:38:32 UTC 2025


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

 * keywords:  has-patch => has-patch commit


Comment:

 The tests are passing in the [https://github.com/WordPress/wordpress-
 develop/pull/8410 associated pull request] based on
 [attachment:"63004.5.patch"].

 I made a minor change and continued to use `absint` within the function to
 sanitize the user IDs to make sure that future changes to
 `wp_parse_ids_list()` don't have an inadvertent effect on escaping.

 The unit test for return values and types are passing, as is manual
 testing.

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


More information about the wp-trac mailing list