[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 11:09:46 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 johnjamesjacoby):

 This looks good to me!

 ---

 My single hesitation differs from @flixos90’s recommendation to formally
 deprecate `get_blog_count()` (using `_deprecated_function()`).

 I’m not strongly opposed here, but I do always wonder if deprecating older
 functions without introducing any new functionality adds unnecessary noise
 – I generally prefer when deprecations are paired with ''meaningful''
 improvements or alternatives, not just a 1-to-1 rename.

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


More information about the wp-trac mailing list