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.

git-svn-id: https://develop.svn.wordpress.org/trunk@48558 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-22 00:05:45 +00:00
parent f840dabcc6
commit 8cbd2ca439
1 changed files with 21 additions and 17 deletions

View File

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