Site Health: Correct markup in `::get_test_php_extensions()` and `::get_test_background_updates()` description.

These tests output an unordered list, which doesn't need to be wrapped in a paragraph tag.

Additionally, pass an empty string as an `actions` parameter in `::get_test_php_default_timezone()`, for consistency with other tests.

Props afercia.
See #48948.
Built from https://develop.svn.wordpress.org/trunk@47528


git-svn-id: http://core.svn.wordpress.org/trunk@47303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-03-29 03:46:06 +00:00
parent d552e475fd
commit 764a1761aa
2 changed files with 4 additions and 9 deletions

View File

@ -1036,10 +1036,7 @@ class WP_Site_Health {
$result['label'] = __( 'One or more required modules are missing' );
}
$result['description'] .= sprintf(
'<p>%s</p>',
$output
);
$result['description'] .= $output;
}
return $result;
@ -1064,6 +1061,7 @@ class WP_Site_Health {
'<p>%s</p>',
__( 'PHP default timezone was configured by WordPress on loading. This is necessary for correct calculations of dates and times.' )
),
'actions' => '',
'test' => 'php_default_timezone',
);
@ -1678,10 +1676,7 @@ class WP_Site_Health {
$output .= '</ul>';
if ( 'good' !== $result['status'] ) {
$result['description'] .= sprintf(
'<p>%s</p>',
$output
);
$result['description'] .= $output;
}
return $result;

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-47527';
$wp_version = '5.5-alpha-47528';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.