From a73eca1021f1cfbcaebf6ec6d4a879d2de9a2c48 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 29 Mar 2020 03:44:36 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@47528 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-site-health.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php index 4b63b3ba17..eb3d89d3f8 100644 --- a/src/wp-admin/includes/class-wp-site-health.php +++ b/src/wp-admin/includes/class-wp-site-health.php @@ -1036,10 +1036,7 @@ class WP_Site_Health { $result['label'] = __( 'One or more required modules are missing' ); } - $result['description'] .= sprintf( - '

%s

', - $output - ); + $result['description'] .= $output; } return $result; @@ -1064,6 +1061,7 @@ class WP_Site_Health { '

%s

', __( '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 .= ''; if ( 'good' !== $result['status'] ) { - $result['description'] .= sprintf( - '

%s

', - $output - ); + $result['description'] .= $output; } return $result;