Multisite: Do not prime site meta caches unless necessary.
Props spacedmonkey. Fixes #46357. See #46167. Built from https://develop.svn.wordpress.org/trunk@44926 git-svn-id: http://core.svn.wordpress.org/trunk@44757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -235,7 +235,8 @@ function get_site_by_path( $domain, $path, $segments = null ) {
|
||||
}
|
||||
|
||||
$args = array(
|
||||
'number' => 1,
|
||||
'number' => 1,
|
||||
'update_site_meta_cache' => false,
|
||||
);
|
||||
|
||||
if ( count( $domains ) > 1 ) {
|
||||
|
||||
Reference in New Issue
Block a user