Ticket #47644: 47644.4.diff
File 47644.4.diff, 3.1 KB (added by , 5 years ago) |
---|
-
src/wp-admin/includes/class-wp-site-health.php
260 260 $result['status'] = 'good'; 261 261 $result['label'] = sprintf( 262 262 /* translators: %s: The current version of WordPress installed on this site. */ 263 __( 'Your WordPress version is up to date (%s)' ),263 __( 'Your version of WordPress (%s) is up to date' ), 264 264 $core_current_version 265 265 ); 266 266 … … 654 654 $result = array( 655 655 'label' => sprintf( 656 656 /* translators: %s: The current PHP version. */ 657 __( ' PHP is up to date (%s)' ),657 __( 'Your version of PHP (%s) is up to date' ), 658 658 PHP_VERSION 659 659 ), 660 660 'status' => 'good', … … 664 664 ), 665 665 'description' => sprintf( 666 666 '<p>%s</p>', 667 __( 'PHP is the programming language we use to build and maintain WordPress. Newer versions of PHP are both faster and more secure, so updating will have a positive effect on your site’s performance.' ) 667 sprintf( 668 // translators: %s: The minimum recommended PHP version 669 __( 'PHP is the programming language used to build and maintain WordPress. Newer versions of PHP are both faster and more secure, so staying up to date will have a positive effect on your site’s overall performance and security. The minimum recommended version of PHP is %s.' ), 670 $response['recommended_version'] 671 ) 668 672 ), 669 673 'actions' => sprintf( 670 674 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>', … … 681 685 return $result; 682 686 } 683 687 684 // The PHP version is older than the recommended version, but still acceptable.688 // The PHP version is older than the recommended version, but still recieving active support. 685 689 if ( $response['is_supported'] ) { 686 $result['label'] = __( 'We recommend that you update PHP' ); 690 $result['label'] = sprintf( 691 // translators: %s: The server PHP version. 692 __( 'Your version of PHP (%s) is out of date' ), 693 PHP_VERSION 694 ); 687 695 $result['status'] = 'recommended'; 688 696 689 697 return $result; … … 691 699 692 700 // The PHP version is only receiving security fixes. 693 701 if ( $response['is_secure'] ) { 694 $result['label'] = __( 'Your PHP version should be updated' ); 702 $result['label'] = sprintf( 703 // translators: %s: The server PHP version. 704 __( 'Your version of PHP (%s) should be updated' ), 705 PHP_VERSION 706 ); 695 707 $result['status'] = 'recommended'; 696 708 697 709 return $result; 698 710 } 699 711 700 712 // Anything no longer secure must be updated. 701 $result['label'] = __( 'Your PHP version requires an update' ); 713 $result['label'] = sprintf( 714 // translators: %s: The server PHP version. 715 __( 'Your version of PHP (%s) requires an update' ), 716 PHP_VERSION 717 ); 702 718 $result['status'] = 'critical'; 703 719 $result['badge']['label'] = __( 'Security' ); 704 720