Site Health: Add the test for plugin and theme auto-updates to WP_Site_Health::get_tests().

This ensures that the test actually runs.

Follow-up to [48548].

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


git-svn-id: http://core.svn.wordpress.org/trunk@48320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-22 00:07:02 +00:00
parent 19779e6302
commit 93bf0c3b83
2 changed files with 22 additions and 18 deletions

View File

@ -1761,7 +1761,7 @@ class WP_Site_Health {
$result['status'] = $check_plugin_theme_updates->status;
if ( 'good' !== $check_plugin_theme_updates->status ) {
if ( 'good' !== $result['status'] ) {
$result['label'] = __( 'Your site may have problems auto-updating plugins and themes' );
$result['description'] .= sprintf(
@ -1804,7 +1804,7 @@ class WP_Site_Health {
$result['status'] = $check_loopback->status;
if ( 'good' !== $check_loopback->status ) {
if ( 'good' !== $result['status'] ) {
$result['label'] = __( 'Your site could not complete a loopback request' );
$result['description'] .= sprintf(
@ -2146,6 +2146,10 @@ class WP_Site_Health {
'label' => __( 'File uploads' ),
'test' => 'file_uploads',
),
'plugin_theme_auto_updates' => array(
'label' => __( 'Plugin and theme auto-updates' ),
'test' => 'plugin_theme_auto_updates',
),
),
'async' => array(
'dotorg_communication' => array(

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-beta3-48557';
$wp_version = '5.5-beta3-48558';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.