[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 16:46:42 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 pmbaldha):

 I have done all chanmges. I am not able to login with my current internetc
 connection. It gives me erroe like:
 Your IP (103.217.85.2) has been flagged for potential security violations.
 Find out more...

 I am trying to upload patch by proxy, but it changesname. I will try to
 give patch again tommorow morning again
 Replying to [comment:2 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:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list