From 893546741042a4321d7d1770370d9d9a0e295405 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 30 Jul 2021 19:38:57 +0000 Subject: [PATCH] Site Health: Standardise site health check status message punctuation. Fixes #53594 Built from https://develop.svn.wordpress.org/trunk@51519 git-svn-id: http://core.svn.wordpress.org/trunk@51130 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-site-health.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index 3db80ea2b6..0adff0078f 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 49188894d6..d982f68dce 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51518'; +$wp_version = '5.9-alpha-51519'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.