From 8f3d2b46adf6cb19ff16cea554555bb67bc3b5ea Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 30 Jul 2021 19:37:54 +0000 Subject: [PATCH] Site Health: Standardise site health check status message punctuation. Fixes #53594 git-svn-id: https://develop.svn.wordpress.org/trunk@51519 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-site-health.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php index 3db80ea2b6..0adff0078f 100644 --- a/src/wp-admin/includes/class-wp-site-health.php +++ b/src/wp-admin/includes/class-wp-site-health.php @@ -1462,7 +1462,7 @@ class WP_Site_Health { if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { if ( defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) { - $result['label'] = __( 'Your site is set to log errors to a potentially public file.' ); + $result['label'] = __( 'Your site is set to log errors to a potentially public file' ); $result['status'] = ( 0 === strpos( ini_get( 'error_log' ), ABSPATH ) ) ? 'critical' : 'recommended'; @@ -2108,7 +2108,7 @@ class WP_Site_Health { */ public function get_test_file_uploads() { $result = array( - 'label' => __( 'Files can be uploaded.' ), + 'label' => __( 'Files can be uploaded' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), @@ -2157,7 +2157,7 @@ class WP_Site_Health { if ( wp_convert_hr_to_bytes( $post_max_size ) < wp_convert_hr_to_bytes( $upload_max_filesize ) ) { $result['label'] = sprintf( /* translators: 1: post_max_size, 2: upload_max_filesize */ - __( 'The "%1$s" value is smaller than "%2$s".' ), + __( 'The "%1$s" value is smaller than "%2$s"' ), 'post_max_size', 'upload_max_filesize' ); @@ -2200,7 +2200,7 @@ class WP_Site_Health { */ public function get_test_authorization_header() { $result = array( - 'label' => __( 'The Authorization header is working as expected.' ), + 'label' => __( 'The Authorization header is working as expected' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), @@ -2215,9 +2215,9 @@ class WP_Site_Health { ); if ( ! isset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] ) ) { - $result['label'] = __( 'The authorization header is missing.' ); + $result['label'] = __( 'The authorization header is missing' ); } elseif ( 'user' !== $_SERVER['PHP_AUTH_USER'] || 'pwd' !== $_SERVER['PHP_AUTH_PW'] ) { - $result['label'] = __( 'The authorization header is invalid.' ); + $result['label'] = __( 'The authorization header is invalid' ); } else { return $result; }