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

WordPress Trac noreply at wordpress.org
Mon May 29 09:43:31 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              |  Resolution:
 Keywords:  2nd-opinion         |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by flixos90):

 Since we're striving towards an API with site/network terminology in favor
 of blog/site long-term, we should consider deprecating `get_blog_count()`
 in favor of a `get_site_count()`. The change of the return type, whether
 it was specified in the docs or not, is a breaking change anyway, so I
 suggest to deprecate the function at the same time and replace their usage
 in core with calls to `get_site_count()`.

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


More information about the wp-trac mailing list