[wp-trac] [WordPress Trac] #37866: Introduce `$network_id` parameter in `get_user_count()`

WordPress Trac noreply at wordpress.org
Mon Apr 3 23:31:35 UTC 2017


#37866: Introduce `$network_id` parameter in `get_user_count()`
---------------------------------------------+------------------------
 Reporter:  flixos90                         |       Owner:  flixos90
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.8
Component:  Networks and Sites               |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch commit has-unit-tests  |     Focuses:  multisite
---------------------------------------------+------------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40371"]:
 {{{
 #!CommitTicketReference repository="" revision="40371"
 Multisite: Add `$network_id` parameter to `get_user_count()`.

 The `get_user_count()` function returns the number of active users on a
 network, which is stored in a `user_count` network option. Since
 `get_network_option()` supports retrieving options from other networks
 than the current one, `get_user_count()` can now make use of that feature.

 Fixes #37866.
 }}}

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


More information about the wp-trac mailing list