mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
4205214eba
commit
8f3d2b46ad
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user