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

WordPress Trac noreply at wordpress.org
Tue Jun 20 18:35:23 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):

 wp_update_network_site_counts() function is used or called by internal
 wordpress code. Generally, Normal Wordpress developer doesn't know about
 wp_update_network_site_counts() function. He/she are are familiar wth
 get_blog_count() function. There is no worth to change get_site_count() to
 get_network_site_count().
 This is my personal opinion.

 If community like get_network_site_count() (would also need a
 get_network_user_count()) function name, Please tell me. I will create new
 patch.

 May i know what is opinion of other contributors?

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


More information about the wp-trac mailing list