[wp-trac] [WordPress Trac] #30294: Introduce get_primary_network_id() function

WordPress Trac noreply at wordpress.org
Tue May 19 06:28:44 UTC 2015


#30294: Introduce get_primary_network_id() function
--------------------------------+-------------------------
 Reporter:  johnjamesjacoby     |       Owner:  jeremyfelt
     Type:  enhancement         |      Status:  assigned
 Priority:  normal              |   Milestone:  4.3
Component:  Networks and Sites  |     Version:  3.7
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+-------------------------
Changes (by jeremyfelt):

 * keywords:  needs-patch => has-patch


Comment:

 [https://core.trac.wordpress.org/attachment/ticket/30294/30294.diff
 30294.diff] uses "main" instead of "primary". Official deprecation of the
 constant would still be required.

 It also moves the `if ( 1 === $current_network_id )` check to
 `get_main_network_id()` and adds some basic filter docs.

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


More information about the wp-trac mailing list