[wp-trac] [WordPress Trac] #29684: Add get_main_site_id() function

WordPress Trac noreply at wordpress.org
Mon Oct 30 17:55:07 UTC 2017


#29684: Add get_main_site_id() function
-------------------------------------------------+------------------------
 Reporter:  rmccue                               |       Owner:  flixos90
     Type:  enhancement                          |      Status:  reopened
 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 flixos90):

 * keywords:  has-patch, has-unit-tests, ms-roadmap => has-patch has-unit-
     tests ms-roadmap
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Per discussion in today's [multisite ticket
 scrub](https://wordpress.slack.com/archives/C03BVB47S/p1509383352000072),
 the network object should be passed to the `pre_get_main_site_id` filter
 instead of just the ID. This was previously discussed already, but
 somewhat overlooked.

 It's a late fix, but simple enough to change it before RC.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29684#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list