You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Site Health: Improve messaging for PHP version status.
Previously, the status could be misleading, especially if the check against the WordPress.org API failed. The initial status message is now more neutral, and a dedicated check has been added to handle cases where the API is unreachable.
Developed in #7350
Follow-up to [58832].
Props pbearne, joemcgill, mukesh27, peterwilsoncc, swb1192, krupajnanda, psykro, SergeyBiryukov, swissspidy, imranhasanraaz, amin7, flixos90, vgnavada, audrasjb, adamsilverstein, Presskopp, westonruter.
Fixes #61623.
git-svn-id: https://develop.svn.wordpress.org/trunk@61123 602fd350-edb4-49c9-b593-d223f7449a82
Copy file name to clipboardExpand all lines: src/wp-admin/includes/class-wp-site-health.php
+32-8Lines changed: 32 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -728,8 +728,8 @@ public function get_test_php_version() {
728
728
729
729
$result = array(
730
730
'label' => sprintf(
731
-
/* translators: %s: The recommended PHP version. */
732
-
__( 'Your site is running a recommended version of PHP (%s)' ),
731
+
/* translators: %s: The server PHP version. */
732
+
__( 'Your site is running PHP %s' ),
733
733
PHP_VERSION
734
734
),
735
735
'status' => 'good',
@@ -739,11 +739,7 @@ public function get_test_php_version() {
739
739
),
740
740
'description' => sprintf(
741
741
'<p>%s</p>',
742
-
sprintf(
743
-
/* translators: %s: The minimum recommended PHP version. */
744
-
__( 'PHP is one of the programming languages used to build WordPress. Newer versions of PHP receive regular security updates and may increase your site’s performance. The minimum recommended version of PHP is %s.' ),
745
-
$response ? $response['recommended_version'] : ''
746
-
)
742
+
__( 'PHP is one of the programming languages used to build WordPress. Newer versions of PHP receive regular security updates and may increase your site’s performance.' )
0 commit comments