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:
parent
c6034be779
commit
88e046f1e8
|
@ -5197,7 +5197,6 @@ function wp_ajax_health_check_background_updates() {
|
|||
wp_send_json_success( $site_health->get_test_background_updates() );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Ajax handler for site health checks on loopback requests.
|
||||
*
|
||||
|
|
|
@ -1743,7 +1743,7 @@ class WP_Site_Health {
|
|||
*/
|
||||
public function get_test_plugin_theme_auto_updates() {
|
||||
$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',
|
||||
'badge' => array(
|
||||
'label' => __( 'Security' ),
|
||||
|
@ -1751,7 +1751,7 @@ class WP_Site_Health {
|
|||
),
|
||||
'description' => sprintf(
|
||||
'<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' => '',
|
||||
'test' => 'plugin_theme_auto_updates',
|
||||
|
@ -2363,23 +2363,23 @@ class WP_Site_Health {
|
|||
) {
|
||||
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.' ),
|
||||
'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 ) {
|
||||
return (object) array(
|
||||
'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 ) {
|
||||
return (object) array(
|
||||
'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(
|
||||
'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.' ),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue