Site Health: Fix some typos in the test for plugin and theme auto-updates.

Follow-up to [48548], [48558], [48559].

See #50662.
Built from https://develop.svn.wordpress.org/trunk@48560


git-svn-id: http://core.svn.wordpress.org/trunk@48322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-22 00:17:04 +00:00
parent c6034be779
commit 88e046f1e8
3 changed files with 7 additions and 8 deletions

View File

@ -5197,7 +5197,6 @@ function wp_ajax_health_check_background_updates() {
wp_send_json_success( $site_health->get_test_background_updates() ); wp_send_json_success( $site_health->get_test_background_updates() );
} }
/** /**
* Ajax handler for site health checks on loopback requests. * Ajax handler for site health checks on loopback requests.
* *

View File

@ -1743,7 +1743,7 @@ class WP_Site_Health {
*/ */
public function get_test_plugin_theme_auto_updates() { public function get_test_plugin_theme_auto_updates() {
$result = array( $result = array(
'label' => __( 'Plugin and Theme auto-updates appear to be configured correctly' ), 'label' => __( 'Plugin and theme auto-updates appear to be configured correctly' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => __( 'Security' ), 'label' => __( 'Security' ),
@ -1751,7 +1751,7 @@ class WP_Site_Health {
), ),
'description' => sprintf( 'description' => sprintf(
'<p>%s</p>', '<p>%s</p>',
__( 'Plugin and theme auto updates ensure that the latest versions are always installed.' ) __( 'Plugin and theme auto-updates ensure that the latest versions are always installed.' )
), ),
'actions' => '', 'actions' => '',
'test' => 'plugin_theme_auto_updates', 'test' => 'plugin_theme_auto_updates',
@ -2363,23 +2363,23 @@ class WP_Site_Health {
) { ) {
return (object) array( return (object) array(
'status' => 'recommended', '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.' ), 'message' => __( 'Auto-updates for plugins and themes appear to be disabled. This will prevent your site from receiving new versions automatically when available.' ),
); );
} elseif ( ! $test_plugins_enabled && $plugin_filter_present ) { } elseif ( ! $test_plugins_enabled && $plugin_filter_present ) {
return (object) array( return (object) array(
'status' => 'recommended', 'status' => 'recommended',
'message' => __( 'Auto-updates for plugins appear to be disabled. This will prevent your sites from receiving new versions automatically when available.' ), 'message' => __( 'Auto-updates for plugins appear to be disabled. This will prevent your site from receiving new versions automatically when available.' ),
); );
} elseif ( ! $test_themes_enabled && $theme_filter_present ) { } elseif ( ! $test_themes_enabled && $theme_filter_present ) {
return (object) array( return (object) array(
'status' => 'recommended', 'status' => 'recommended',
'message' => __( 'Auto-updates for themes appear to be disabled. This will prevent your sites from receiving new versions automatically when available.' ), 'message' => __( 'Auto-updates for themes appear to be disabled. This will prevent your site from receiving new versions automatically when available.' ),
); );
} }
return (object) array( return (object) array(
'status' => 'good', 'status' => 'good',
'message' => __( 'There appears to be no issues with plugin and theme auto-updates.' ), 'message' => __( 'There appear to be no issues with plugin and theme auto-updates.' ),
); );
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-beta3-48559'; $wp_version = '5.5-beta3-48560';
/** /**
* 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.