Site Health: Improve the wording for PHP update recommendations.
Props Clorith, grafruessel, sathyapulse, wpgurudev, garrett-eclipse, marybaum, xkon, SergeyBiryukov. Fixes #48716. git-svn-id: https://develop.svn.wordpress.org/trunk@47254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
49d8c4eff3
commit
8650885f85
@ -706,7 +706,7 @@ class WP_Site_Health {
|
||||
$result = array(
|
||||
'label' => sprintf(
|
||||
/* translators: %s: The current PHP version. */
|
||||
__( 'Your version of PHP (%s) is up to date' ),
|
||||
__( 'Your site is running the current version of PHP (%s)' ),
|
||||
PHP_VERSION
|
||||
),
|
||||
'status' => 'good',
|
||||
@ -741,7 +741,7 @@ class WP_Site_Health {
|
||||
if ( $response['is_supported'] ) {
|
||||
$result['label'] = sprintf(
|
||||
/* translators: %s: The server PHP version. */
|
||||
__( 'Your version of PHP (%s) is out of date' ),
|
||||
__( 'Your site is running an older version of PHP (%s)' ),
|
||||
PHP_VERSION
|
||||
);
|
||||
$result['status'] = 'recommended';
|
||||
@ -753,7 +753,7 @@ class WP_Site_Health {
|
||||
if ( $response['is_secure'] ) {
|
||||
$result['label'] = sprintf(
|
||||
/* translators: %s: The server PHP version. */
|
||||
__( 'Your version of PHP (%s) should be updated' ),
|
||||
__( 'Your site is running an older version of PHP (%s), which should be updated' ),
|
||||
PHP_VERSION
|
||||
);
|
||||
$result['status'] = 'recommended';
|
||||
@ -764,7 +764,7 @@ class WP_Site_Health {
|
||||
// Anything no longer secure must be updated.
|
||||
$result['label'] = sprintf(
|
||||
/* translators: %s: The server PHP version. */
|
||||
__( 'Your version of PHP (%s) requires an update' ),
|
||||
__( 'Your site is running an outdated version of PHP (%s), which requires an update' ),
|
||||
PHP_VERSION
|
||||
);
|
||||
$result['status'] = 'critical';
|
||||
|
Loading…
Reference in New Issue
Block a user