Changeset 46267 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 09/23/2019 07:38:56 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r46231 r46267 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 ); … … 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 ), … … 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 faster and more secure, so staying up to date will help 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( … … 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 receiving 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 … … 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 … … 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' );
Note: See TracChangeset
for help on using the changeset viewer.