Site Health: Ensure persistent object cache check short-circuit filter also short-circuits multisite.
Follow up to [54053]. See #56040. Built from https://develop.svn.wordpress.org/trunk@54054 git-svn-id: http://core.svn.wordpress.org/trunk@53613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
83e6ad6c9a
commit
7f4f1ead61
|
@ -3290,10 +3290,6 @@ class WP_Site_Health {
|
||||||
public function should_suggest_persistent_object_cache() {
|
public function should_suggest_persistent_object_cache() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
if ( is_multisite() ) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters whether to suggest use of a persistent object cache and bypass default threshold checks.
|
* Filters whether to suggest use of a persistent object cache and bypass default threshold checks.
|
||||||
*
|
*
|
||||||
|
@ -3309,6 +3305,10 @@ class WP_Site_Health {
|
||||||
return $short_circuit;
|
return $short_circuit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( is_multisite() ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters the thresholds used to determine whether to suggest the use of a persistent object cache.
|
* Filters the thresholds used to determine whether to suggest the use of a persistent object cache.
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-alpha-54053';
|
$wp_version = '6.1-alpha-54054';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue