Ticket #46789: 46789.patch
File 46789.patch, 2.2 KB (added by , 5 years ago) |
---|
-
src/wp-admin/includes/class-wp-site-health.php
182 182 'label' => '', 183 183 'status' => '', 184 184 'badge' => array( 185 'label' => __( ' Security' ),185 'label' => __( 'Performance' ), 186 186 'color' => 'red', 187 187 ), 188 188 'description' => '', … … 242 242 ); 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.' ) 249 250 ); … … 621 622 ), 622 623 'status' => 'good', 623 624 'badge' => array( 624 'label' => __( ' Security' ),625 'label' => __( 'Performance' ), 625 626 'color' => 'red', 626 627 ), 627 628 'description' => sprintf( … … 660 661 } 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; 667 669 } … … 905 907 'label' => __( 'SQL server is up to date' ), 906 908 'status' => 'good', 907 909 'badge' => array( 908 'label' => __( ' Security' ),910 'label' => __( 'Performance' ), 909 911 'color' => 'red', 910 912 ), 911 913 'description' => sprintf( … … 937 939 if ( ! $this->mysql_min_version_check ) { 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( 943 946 '<p>%s</p>',