[wp-trac] [WordPress Trac] #29684: Add get_main_site_id() function
WordPress Trac
noreply at wordpress.org
Mon Oct 30 19:55:11 UTC 2017
#29684: Add get_main_site_id() function
-------------------------------------------------+------------------------
Reporter: rmccue | Owner: flixos90
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.9
Component: Networks and Sites | Version: 3.9
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests ms-roadmap | Focuses: multisite
-------------------------------------------------+------------------------
Changes (by flixos90):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"42043"]:
{{{
#!CommitTicketReference repository="" revision="42043"
Multisite: Pass network object instead of ID to `pre_get_main_site_id`.
In the original function introduced in [41380], and subsequently [41861],
only the network ID was passed to the new `pre_get_main_site_id` filter.
In order to make give quick access to other network properties, it was
decided to pass the whole object instead. The changeset includes an
additional test.
Fixes #29684.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29684#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list