mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
19779e6302
commit
93bf0c3b83
@ -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(
|
||||||
@ -2086,66 +2086,70 @@ class WP_Site_Health {
|
|||||||
public static function get_tests() {
|
public static function get_tests() {
|
||||||
$tests = array(
|
$tests = array(
|
||||||
'direct' => array(
|
'direct' => array(
|
||||||
'wordpress_version' => array(
|
'wordpress_version' => array(
|
||||||
'label' => __( 'WordPress Version' ),
|
'label' => __( 'WordPress Version' ),
|
||||||
'test' => 'wordpress_version',
|
'test' => 'wordpress_version',
|
||||||
),
|
),
|
||||||
'plugin_version' => array(
|
'plugin_version' => array(
|
||||||
'label' => __( 'Plugin Versions' ),
|
'label' => __( 'Plugin Versions' ),
|
||||||
'test' => 'plugin_version',
|
'test' => 'plugin_version',
|
||||||
),
|
),
|
||||||
'theme_version' => array(
|
'theme_version' => array(
|
||||||
'label' => __( 'Theme Versions' ),
|
'label' => __( 'Theme Versions' ),
|
||||||
'test' => 'theme_version',
|
'test' => 'theme_version',
|
||||||
),
|
),
|
||||||
'php_version' => array(
|
'php_version' => array(
|
||||||
'label' => __( 'PHP Version' ),
|
'label' => __( 'PHP Version' ),
|
||||||
'test' => 'php_version',
|
'test' => 'php_version',
|
||||||
),
|
),
|
||||||
'php_extensions' => array(
|
'php_extensions' => array(
|
||||||
'label' => __( 'PHP Extensions' ),
|
'label' => __( 'PHP Extensions' ),
|
||||||
'test' => 'php_extensions',
|
'test' => 'php_extensions',
|
||||||
),
|
),
|
||||||
'php_default_timezone' => array(
|
'php_default_timezone' => array(
|
||||||
'label' => __( 'PHP Default Timezone' ),
|
'label' => __( 'PHP Default Timezone' ),
|
||||||
'test' => 'php_default_timezone',
|
'test' => 'php_default_timezone',
|
||||||
),
|
),
|
||||||
'php_sessions' => array(
|
'php_sessions' => array(
|
||||||
'label' => __( 'PHP Sessions' ),
|
'label' => __( 'PHP Sessions' ),
|
||||||
'test' => 'php_sessions',
|
'test' => 'php_sessions',
|
||||||
),
|
),
|
||||||
'sql_server' => array(
|
'sql_server' => array(
|
||||||
'label' => __( 'Database Server version' ),
|
'label' => __( 'Database Server version' ),
|
||||||
'test' => 'sql_server',
|
'test' => 'sql_server',
|
||||||
),
|
),
|
||||||
'utf8mb4_support' => array(
|
'utf8mb4_support' => array(
|
||||||
'label' => __( 'MySQL utf8mb4 support' ),
|
'label' => __( 'MySQL utf8mb4 support' ),
|
||||||
'test' => 'utf8mb4_support',
|
'test' => 'utf8mb4_support',
|
||||||
),
|
),
|
||||||
'https_status' => array(
|
'https_status' => array(
|
||||||
'label' => __( 'HTTPS status' ),
|
'label' => __( 'HTTPS status' ),
|
||||||
'test' => 'https_status',
|
'test' => 'https_status',
|
||||||
),
|
),
|
||||||
'ssl_support' => array(
|
'ssl_support' => array(
|
||||||
'label' => __( 'Secure communication' ),
|
'label' => __( 'Secure communication' ),
|
||||||
'test' => 'ssl_support',
|
'test' => 'ssl_support',
|
||||||
),
|
),
|
||||||
'scheduled_events' => array(
|
'scheduled_events' => array(
|
||||||
'label' => __( 'Scheduled events' ),
|
'label' => __( 'Scheduled events' ),
|
||||||
'test' => 'scheduled_events',
|
'test' => 'scheduled_events',
|
||||||
),
|
),
|
||||||
'http_requests' => array(
|
'http_requests' => array(
|
||||||
'label' => __( 'HTTP Requests' ),
|
'label' => __( 'HTTP Requests' ),
|
||||||
'test' => 'http_requests',
|
'test' => 'http_requests',
|
||||||
),
|
),
|
||||||
'debug_enabled' => array(
|
'debug_enabled' => array(
|
||||||
'label' => __( 'Debugging enabled' ),
|
'label' => __( 'Debugging enabled' ),
|
||||||
'test' => 'is_in_debug_mode',
|
'test' => 'is_in_debug_mode',
|
||||||
),
|
),
|
||||||
'file_uploads' => array(
|
'file_uploads' => array(
|
||||||
'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(
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user