[wp-trac] [WordPress Trac] #47599: Return for short circuits for multisite classes.
WordPress Trac
noreply at wordpress.org
Thu Sep 12 22:16:19 UTC 2019
#47599: Return for short circuits for multisite classes.
---------------------------------------------+-----------------------------
Reporter: spacedmonkey | Owner:
| adamsilverstein
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: Networks and Sites | Version: 5.2
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: multisite
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"46100" 46100]:
{{{
#!CommitTicketReference repository="" revision="46100"
Multisite: improve `sites_pre_query` and `networks_pre_query` filters,
avoiding db queries.
Improve the `pre_query` filters in multisite classes introduced in r44983.
Return (non null) values immediately,
avoiding the database queries entirely, similar to other `pre_query`
filters.
Props spacedmonkey, SergeyBiryukov, felipeelia.
Fixes #47599.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47599#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list