Make WordPress Core

Changeset 46267


Ignore:
Timestamp:
09/23/2019 07:38:56 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Improve wording for PHP update warning.

Props danieltj, garrett-eclipse, marybaum, afragen, chetan200891.
Fixes #47644.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r46231 r46267  
    261261                                        $result['label']  = sprintf(
    262262                                                /* 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' ),
    264264                                                $core_current_version
    265265                                        );
     
    655655                        'label'       => sprintf(
    656656                                /* translators: %s: The current PHP version. */
    657                                 __( 'PHP is up to date (%s)' ),
     657                                __( 'Your version of PHP (%s) is up to date' ),
    658658                                PHP_VERSION
    659659                        ),
     
    665665                        'description' => sprintf(
    666666                                '<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&#8217;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&#8217;s overall performance and security. The minimum recommended version of PHP is %s.' ),
     670                                        $response['recommended_version']
     671                                )
    668672                        ),
    669673                        'actions'     => sprintf(
     
    682686                }
    683687
    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.
    685689                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                        );
    687695                        $result['status'] = 'recommended';
    688696
     
    692700                // The PHP version is only receiving security fixes.
    693701                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                        );
    695707                        $result['status'] = 'recommended';
    696708
     
    699711
    700712                // 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                );
    702718                $result['status']         = 'critical';
    703719                $result['badge']['label'] = __( 'Security' );
Note: See TracChangeset for help on using the changeset viewer.