[wp-trac] [WordPress Trac] #40736: Ensure that `get_blog_count()` and `get_user_count()` return an integer
WordPress Trac
noreply at wordpress.org
Thu May 11 18:59:32 UTC 2017
#40736: Ensure that `get_blog_count()` and `get_user_count()` return an integer
--------------------------------+-----------------------------
Reporter: flixos90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Keywords: 2nd-opinion
Focuses: multisite |
--------------------------------+-----------------------------
The documentation for the functions `get_blog_count()` and
`get_user_count()` states that the return type is an integer, however the
functions only call `get_network_option()` without any typecast.
The functions should be adjusted to actually reflect their documentation.
While this might theoretically be problematic in terms of backward-
compatibility, in #40724 some initial thoughts of this being a viable
change were expressed, so let's think about it on this ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40736>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list