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
This commit is contained in:
parent
2cb4ebefe2
commit
8935467410
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue