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

WordPress Trac noreply at wordpress.org
Wed Nov 12 02:01:42 UTC 2014


#30294: Introduce get_primary_network_id() function
--------------------------------+------------------------------
 Reporter:  johnjamesjacoby     |       Owner:  jeremyfelt
     Type:  defect (bug)        |      Status:  assigned
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  3.7
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by rmccue):

 Also worth adding a function to get the data for the primary network to
 avoid two queries (i.e. get primary network ID, then get network data for
 that ID). We have this in [https://github.com/johnjamesjacoby/wp-multi-
 network/blob/master/src/wpmn-functions.php#L639-L668 the multinetwork
 plugin]; pretty easy to do.

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


More information about the wp-trac mailing list