Changeset 45121
- Timestamp:
- 04/06/2019 03:59:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r45107 r45121 183 183 'status' => '', 184 184 'badge' => array( 185 'label' => __( ' Security' ),185 'label' => __( 'Performance' ), 186 186 'color' => 'red', 187 187 ), … … 243 243 } else { 244 244 // This is a minor version, sometimes considered more critical. 245 $result['status'] = 'critical'; 246 $result['description'] = sprintf( 245 $result['status'] = 'critical'; 246 $result['badge']['label'] = __( 'Security' ); 247 $result['description'] = sprintf( 247 248 '<p>%s</p>', 248 249 __( 'A new minor update is available for your site. Because minor updates often address security, it’s important to install them.' ) … … 622 623 'status' => 'good', 623 624 'badge' => array( 624 'label' => __( ' Security' ),625 'label' => __( 'Performance' ), 625 626 'color' => 'red', 626 627 ), … … 652 653 } 653 654 654 // The PHP version is only rec ieving security fixes.655 // The PHP version is only receiving security fixes. 655 656 if ( $response['is_secure'] ) { 656 657 $result['label'] = __( 'Your PHP version should be updated' ); … … 661 662 662 663 // Anything no longer secure must be updated. 663 $result['label'] = __( 'Your PHP version requires an update' ); 664 $result['status'] = 'critical'; 664 $result['label'] = __( 'Your PHP version requires an update' ); 665 $result['status'] = 'critical'; 666 $result['badge']['label'] = __( 'Security' ); 665 667 666 668 return $result; … … 906 908 'status' => 'good', 907 909 'badge' => array( 908 'label' => __( ' Security' ),910 'label' => __( 'Performance' ), 909 911 'color' => 'red', 910 912 ), … … 938 940 $result['status'] = 'critical'; 939 941 940 $result['label'] = __( 'Severely outdated SQL server' ); 942 $result['label'] = __( 'Severely outdated SQL server' ); 943 $result['badge']['label'] = __( 'Security' ); 941 944 942 945 $result['description'] .= sprintf(
Note: See TracChangeset
for help on using the changeset viewer.