Changeset 51519 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 07/30/2021 07:37:54 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r51297 r51519 1463 1463 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 1464 1464 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' ); 1466 1466 1467 1467 $result['status'] = ( 0 === strpos( ini_get( 'error_log' ), ABSPATH ) ) ? 'critical' : 'recommended'; … … 2109 2109 public function get_test_file_uploads() { 2110 2110 $result = array( 2111 'label' => __( 'Files can be uploaded .' ),2111 'label' => __( 'Files can be uploaded' ), 2112 2112 'status' => 'good', 2113 2113 'badge' => array( … … 2158 2158 $result['label'] = sprintf( 2159 2159 /* 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"' ), 2161 2161 'post_max_size', 2162 2162 'upload_max_filesize' … … 2201 2201 public function get_test_authorization_header() { 2202 2202 $result = array( 2203 'label' => __( 'The Authorization header is working as expected .' ),2203 'label' => __( 'The Authorization header is working as expected' ), 2204 2204 'status' => 'good', 2205 2205 'badge' => array( … … 2216 2216 2217 2217 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' ); 2219 2219 } 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' ); 2221 2221 } else { 2222 2222 return $result;
Note: See TracChangeset
for help on using the changeset viewer.