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:
parent
f840dabcc6
commit
8cbd2ca439
@ -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(
|
||||
@ -2086,66 +2086,70 @@ class WP_Site_Health {
|
||||
public static function get_tests() {
|
||||
$tests = array(
|
||||
'direct' => array(
|
||||
'wordpress_version' => array(
|
||||
'wordpress_version' => array(
|
||||
'label' => __( 'WordPress Version' ),
|
||||
'test' => 'wordpress_version',
|
||||
),
|
||||
'plugin_version' => array(
|
||||
'plugin_version' => array(
|
||||
'label' => __( 'Plugin Versions' ),
|
||||
'test' => 'plugin_version',
|
||||
),
|
||||
'theme_version' => array(
|
||||
'theme_version' => array(
|
||||
'label' => __( 'Theme Versions' ),
|
||||
'test' => 'theme_version',
|
||||
),
|
||||
'php_version' => array(
|
||||
'php_version' => array(
|
||||
'label' => __( 'PHP Version' ),
|
||||
'test' => 'php_version',
|
||||
),
|
||||
'php_extensions' => array(
|
||||
'php_extensions' => array(
|
||||
'label' => __( 'PHP Extensions' ),
|
||||
'test' => 'php_extensions',
|
||||
),
|
||||
'php_default_timezone' => array(
|
||||
'php_default_timezone' => array(
|
||||
'label' => __( 'PHP Default Timezone' ),
|
||||
'test' => 'php_default_timezone',
|
||||
),
|
||||
'php_sessions' => array(
|
||||
'php_sessions' => array(
|
||||
'label' => __( 'PHP Sessions' ),
|
||||
'test' => 'php_sessions',
|
||||
),
|
||||
'sql_server' => array(
|
||||
'sql_server' => array(
|
||||
'label' => __( 'Database Server version' ),
|
||||
'test' => 'sql_server',
|
||||
),
|
||||
'utf8mb4_support' => array(
|
||||
'utf8mb4_support' => array(
|
||||
'label' => __( 'MySQL utf8mb4 support' ),
|
||||
'test' => 'utf8mb4_support',
|
||||
),
|
||||
'https_status' => array(
|
||||
'https_status' => array(
|
||||
'label' => __( 'HTTPS status' ),
|
||||
'test' => 'https_status',
|
||||
),
|
||||
'ssl_support' => array(
|
||||
'ssl_support' => array(
|
||||
'label' => __( 'Secure communication' ),
|
||||
'test' => 'ssl_support',
|
||||
),
|
||||
'scheduled_events' => array(
|
||||
'scheduled_events' => array(
|
||||
'label' => __( 'Scheduled events' ),
|
||||
'test' => 'scheduled_events',
|
||||
),
|
||||
'http_requests' => array(
|
||||
'http_requests' => array(
|
||||
'label' => __( 'HTTP Requests' ),
|
||||
'test' => 'http_requests',
|
||||
),
|
||||
'debug_enabled' => array(
|
||||
'debug_enabled' => array(
|
||||
'label' => __( 'Debugging enabled' ),
|
||||
'test' => 'is_in_debug_mode',
|
||||
),
|
||||
'file_uploads' => array(
|
||||
'file_uploads' => array(
|
||||
'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(
|
||||
|
Loading…
Reference in New Issue
Block a user