Site Health: Correct inverted logic for themes in the test for plugin and theme auto-updates.
Follow-up to [48548], [48558]. See #50662. git-svn-id: https://develop.svn.wordpress.org/trunk@48559 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8cbd2ca439
commit
874e6afdca
@ -2349,14 +2349,18 @@ class WP_Site_Health {
|
||||
$plugin_filter_present = has_filter( 'auto_update_plugin' );
|
||||
$theme_filter_present = has_filter( 'auto_update_theme' );
|
||||
|
||||
if ( ( ! $test_plugins_enabled && $ui_enabled_for_plugins ) || ( $test_themes_enabled && $ui_enabled_for_themes ) ) {
|
||||
if ( ( ! $test_plugins_enabled && $ui_enabled_for_plugins )
|
||||
|| ( ! $test_themes_enabled && $ui_enabled_for_themes )
|
||||
) {
|
||||
return (object) array(
|
||||
'status' => 'critical',
|
||||
'message' => __( 'Auto-updates for plugins and/or themes appear to be disabled, but settings are still set to be displayed. This could cause auto-updates to not work as expected.' ),
|
||||
);
|
||||
}
|
||||
|
||||
if ( ( ! $test_plugins_enabled && $plugin_filter_present ) && ( ! $test_themes_enabled && $theme_filter_present ) ) {
|
||||
if ( ( ! $test_plugins_enabled && $plugin_filter_present )
|
||||
&& ( ! $test_themes_enabled && $theme_filter_present )
|
||||
) {
|
||||
return (object) array(
|
||||
'status' => 'recommended',
|
||||
'message' => __( 'Auto-updates for plugins and themes appear to be disabled. This will prevent your sites from receiving new versions automatically when available.' ),
|
||||
|
Loading…
Reference in New Issue
Block a user