[wp-trac] [WordPress Trac] #29684: Add get_main_site() function
WordPress Trac
noreply at wordpress.org
Tue Jul 25 20:50:49 UTC 2017
#29684: Add get_main_site() function
-------------------------------------------------+-------------------------
Reporter: rmccue | Owner: flixos90
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.9
Component: Networks and Sites | Version: 3.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev- | Focuses: multisite
feedback |
-------------------------------------------------+-------------------------
Comment (by flixos90):
I agree that there should definitely be a magic getter for the main site
ID of `WP_Network`. But the actual code should be part of
`get_main_site()` so that it can be called independently. The magic getter
could then call `get_main_site()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29684#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list