[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 13:23:32 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 johnbillion):
The value for the `blog_count` option gets populated by
`wp_update_network_site_counts()`, which as far as I can tell returns an
integer.
Under what condition can `get_blog_count()` return a non-integer?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40736#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list