[wp-trac] [WordPress Trac] #29684: Add get_main_site() function
WordPress Trac
noreply at wordpress.org
Fri Oct 17 05:49:52 UTC 2014
#29684: Add get_main_site() function
------------------------------------+-----------------------------
Reporter: rmccue | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Networks and Sites | Version: 3.9
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses: multisite
------------------------------------+-----------------------------
Changes (by jeremyfelt):
* keywords: => dev-feedback has-patch
* type: defect (bug) => enhancement
* milestone: Awaiting Review => Future Release
Comment:
I took a stab at this in
[https://core.trac.wordpress.org/attachment/ticket/29684/29684.diff
29684.diff].
I'm on the fence as to whether `get_main_site()` should return only the ID
or a full site object. An ID fulfills the original need to set the
network's main site ID. This could also be `get_main_site_id()`.
The current bootstrap tests still pass, though we would need something
more comprehensive for this function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29684#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list