Make WordPress Core

Changeset 48558


Ignore:
Timestamp:
07/22/2020 12:05:45 AM (6 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r48548 r48558  
    17621762                $result['status'] = $check_plugin_theme_updates->status;
    17631763
    1764                 if ( 'good' !== $check_plugin_theme_updates->status ) {
     1764                if ( 'good' !== $result['status'] ) {
    17651765                        $result['label'] = __( 'Your site may have problems auto-updating plugins and themes' );
    17661766
    … …  
    18051805                $result['status'] = $check_loopback->status;
    18061806
    1807                 if ( 'good' !== $check_loopback->status ) {
     1807                if ( 'good' !== $result['status'] ) {
    18081808                        $result['label'] = __( 'Your site could not complete a loopback request' );
    18091809
    … …  
    20872087                $tests = array(
    20882088                        'direct' => array(
    2089                                 'wordpress_version'    => array(
     2089                                'wordpress_version'         => array(
    20902090                                        'label' => __( 'WordPress Version' ),
    20912091                                        'test'  => 'wordpress_version',
    20922092                                ),
    2093                                 'plugin_version'       => array(
     2093                                'plugin_version'            => array(
    20942094                                        'label' => __( 'Plugin Versions' ),
    20952095                                        'test'  => 'plugin_version',
    20962096                                ),
    2097                                 'theme_version'        => array(
     2097                                'theme_version'             => array(
    20982098                                        'label' => __( 'Theme Versions' ),
    20992099                                        'test'  => 'theme_version',
    21002100                                ),
    2101                                 'php_version'          => array(
     2101                                'php_version'               => array(
    21022102                                        'label' => __( 'PHP Version' ),
    21032103                                        'test'  => 'php_version',
    21042104                                ),
    2105                                 'php_extensions'       => array(
     2105                                'php_extensions'            => array(
    21062106                                        'label' => __( 'PHP Extensions' ),
    21072107                                        'test'  => 'php_extensions',
    21082108                                ),
    2109                                 'php_default_timezone' => array(
     2109                                'php_default_timezone'      => array(
    21102110                                        'label' => __( 'PHP Default Timezone' ),
    21112111                                        'test'  => 'php_default_timezone',
    21122112                                ),
    2113                                 'php_sessions'         => array(
     2113                                'php_sessions'              => array(
    21142114                                        'label' => __( 'PHP Sessions' ),
    21152115                                        'test'  => 'php_sessions',
    21162116                                ),
    2117                                 'sql_server'           => array(
     2117                                'sql_server'                => array(
    21182118                                        'label' => __( 'Database Server version' ),
    21192119                                        'test'  => 'sql_server',
    21202120                                ),
    2121                                 'utf8mb4_support'      => array(
     2121                                'utf8mb4_support'           => array(
    21222122                                        'label' => __( 'MySQL utf8mb4 support' ),
    21232123                                        'test'  => 'utf8mb4_support',
    21242124                                ),
    2125                                 'https_status'         => array(
     2125                                'https_status'              => array(
    21262126                                        'label' => __( 'HTTPS status' ),
    21272127                                        'test'  => 'https_status',
    21282128                                ),
    2129                                 'ssl_support'          => array(
     2129                                'ssl_support'               => array(
    21302130                                        'label' => __( 'Secure communication' ),
    21312131                                        'test'  => 'ssl_support',
    21322132                                ),
    2133                                 'scheduled_events'     => array(
     2133                                'scheduled_events'          => array(
    21342134                                        'label' => __( 'Scheduled events' ),
    21352135                                        'test'  => 'scheduled_events',
    21362136                                ),
    2137                                 'http_requests'        => array(
     2137                                'http_requests'             => array(
    21382138                                        'label' => __( 'HTTP Requests' ),
    21392139                                        'test'  => 'http_requests',
    21402140                                ),
    2141                                 'debug_enabled'        => array(
     2141                                'debug_enabled'             => array(
    21422142                                        'label' => __( 'Debugging enabled' ),
    21432143                                        'test'  => 'is_in_debug_mode',
    21442144                                ),
    2145                                 'file_uploads'         => array(
     2145                                'file_uploads'              => array(
    21462146                                        'label' => __( 'File uploads' ),
    21472147                                        'test'  => 'file_uploads',
     2148                                ),
     2149                                'plugin_theme_auto_updates' => array(
     2150                                        'label' => __( 'Plugin and theme auto-updates' ),
     2151                                        'test'  => 'plugin_theme_auto_updates',
    21482152                                ),
    21492153                        ),
Note: See TracChangeset for help on using the changeset viewer.