Commit dbec12e2 authored by SergeyBiryukov's avatar SergeyBiryukov
Browse files

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: https://core.svn.wordpress.org/trunk@48320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 144bfede
Loading
Loading
Loading
Loading
+21 −17
Original line number Diff line number Diff line
@@ -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(
+1 −1
Original line number Diff line number Diff line
@@ -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.