[wp-trac] [WordPress Trac] #40736: Ensure that `get_blog_count()` and `get_user_count()` return an integer

WordPress Trac noreply at wordpress.org
Thu Jun 5 09:09:31 UTC 2025


#40736: Ensure that `get_blog_count()` and `get_user_count()` return an integer
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Networks and Sites                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion has-patch has-unit-      |     Focuses:  multisite
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by Soean):

 `get_user_count()` already has a typecast, so we only updated
 `get_blog_count()` and renamed it to `get_site_count()` as discussed
 before. We also adjusted the usage of the functions and updated the tests.

 props to @heikomamerow

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


More information about the wp-trac mailing list