[wp-trac] [WordPress Trac] #37865: Allow using the `$network_id` parameter of `get_blog_count()` again
WordPress Trac
noreply at wordpress.org
Mon Apr 3 23:13:42 UTC 2017
#37865: Allow using the `$network_id` parameter of `get_blog_count()` again
---------------------------------------------+------------------------
Reporter: flixos90 | Owner: flixos90
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.8
Component: Networks and Sites | Version: 3.7
Severity: normal | Resolution: fixed
Keywords: has-patch commit has-unit-tests | Focuses: multisite
---------------------------------------------+------------------------
Changes (by flixos90):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"40370"]:
{{{
#!CommitTicketReference repository="" revision="40370"
Multisite: Support the `$network_id` parameter of `get_blog_count()`.
The `get_blog_count()` function used to support an `$id` parameter for the
network ID prior to WordPress 3.1. This parameter has not been used since
the introduction of `get_site_option()` and was later deprecated in
[25113]. With `get_network_option()` however it is possible to support the
parameter again, now properly renamed as `$network_id`.
A unit test has for the parameter has been added as well. Another unit
test in the same class was adjusted to work properly with multiple
networks existing.
Fixes #37865.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37865#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list