[wp-trac] [WordPress Trac] #29684: Add get_main_site_id() function
WordPress Trac
noreply at wordpress.org
Tue Aug 29 09:27:48 UTC 2017
#29684: Add get_main_site_id() function
-------------------------------------------------+-------------------------
Reporter: rmccue | Owner: jeremyfelt
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 4.9
Component: Networks and Sites | Version: 3.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests ms-roadmap | Focuses: multisite
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):
* keywords: has-patch has-unit-tests => has-patch has-unit-tests ms-
roadmap
Comment:
[https://core.trac.wordpress.org/attachment/ticket/29684/29684.9.diff
29684.9.diff]
Key changes.
- Move get_main_site_id filter to top of function for better short
circuit.
- Check to see if blog_id is set on network object.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29684#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list