[wp-trac] [WordPress Trac] #37218: get_main_network_id should use WP_Network_Query

WordPress Trac noreply at wordpress.org
Tue Sep 20 18:46:54 UTC 2016


#37218: get_main_network_id should use WP_Network_Query
--------------------------------+-------------------------
 Reporter:  spacedmonkey        |       Owner:  jeremyfelt
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  4.7
Component:  Networks and Sites  |     Version:  4.6
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+-------------------------
Changes (by jeremyfelt):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38632"]:
 {{{
 #!CommitTicketReference repository="" revision="38632"
 Multisite: Use `get_networks()` in `get_main_network_id()`.

 The manual query for the main network ID can now be replaced with a cached
 `get_networks()` query. This allows us to eliminate the
 `primary_network_id` cache key entirely.

 Props spacedmonkey.
 Fixes #37218.
 }}}

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


More information about the wp-trac mailing list