[wp-trac] [WordPress Trac] #41805: Use get_network in populate_network function
WordPress Trac
noreply at wordpress.org
Fri Sep 8 16:32:41 UTC 2017
#41805: Use get_network in populate_network function
--------------------------------+------------------------
Reporter: spacedmonkey | Owner: flixos90
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.9
Component: Networks and Sites | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: multisite
--------------------------------+------------------------
Changes (by flixos90):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"41348"]:
{{{
#!CommitTicketReference repository="" revision="41348"
Multisite: Use `get_network()` in `populate_network()` to check whether a
network with the given ID already exists.
When multisite is setup already, e.g. in a multi network environment, this
change gives a performance benefit over the direct SQL query that was
previously used. The SQL query remains in place for when setting up
multisite initially as the network API is not available at that point.
Props spacedmonkey.
Fixes #41805.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41805#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list