Make WordPress Core

Changeset 51519


Ignore:
Timestamp:
07/30/2021 07:37:54 PM (3 years ago)
Author:
johnbillion
Message:

Site Health: Standardise site health check status message punctuation.

Fixes #53594

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r51297 r51519  
    14631463        if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
    14641464            if ( defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) {
    1465                 $result['label'] = __( 'Your site is set to log errors to a potentially public file.' );
     1465                $result['label'] = __( 'Your site is set to log errors to a potentially public file' );
    14661466
    14671467                $result['status'] = ( 0 === strpos( ini_get( 'error_log' ), ABSPATH ) ) ? 'critical' : 'recommended';
     
    21092109    public function get_test_file_uploads() {
    21102110        $result = array(
    2111             'label'       => __( 'Files can be uploaded.' ),
     2111            'label'       => __( 'Files can be uploaded' ),
    21122112            'status'      => 'good',
    21132113            'badge'       => array(
     
    21582158            $result['label'] = sprintf(
    21592159                /* translators: 1: post_max_size, 2: upload_max_filesize */
    2160                 __( 'The "%1$s" value is smaller than "%2$s".' ),
     2160                __( 'The "%1$s" value is smaller than "%2$s"' ),
    21612161                'post_max_size',
    21622162                'upload_max_filesize'
     
    22012201    public function get_test_authorization_header() {
    22022202        $result = array(
    2203             'label'       => __( 'The Authorization header is working as expected.' ),
     2203            'label'       => __( 'The Authorization header is working as expected' ),
    22042204            'status'      => 'good',
    22052205            'badge'       => array(
     
    22162216
    22172217        if ( ! isset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] ) ) {
    2218             $result['label'] = __( 'The authorization header is missing.' );
     2218            $result['label'] = __( 'The authorization header is missing' );
    22192219        } elseif ( 'user' !== $_SERVER['PHP_AUTH_USER'] || 'pwd' !== $_SERVER['PHP_AUTH_PW'] ) {
    2220             $result['label'] = __( 'The authorization header is invalid.' );
     2220            $result['label'] = __( 'The authorization header is invalid' );
    22212221        } else {
    22222222            return $result;
Note: See TracChangeset for help on using the changeset viewer.