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
Copy file name to clipboardExpand all lines: src/wp-admin/includes/class-wp-site-health.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -726,7 +726,7 @@ public function get_test_php_version() {
726
726
'<p>%s</p>',
727
727
sprintf(
728
728
/* translators: %s: The minimum recommended PHP version. */
729
-
__( '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.' ),
729
+
__( 'PHP is the programming language used to build and maintain WordPress. Newer versions of PHP are created with increased performance in mind, so you may see a positive effect on your site’s performance. The minimum recommended version of PHP is %s.' ),
@@ -1747,16 +1747,31 @@ function wp_dashboard_php_nag() {
1747
1747
}
1748
1748
1749
1749
if ( isset( $response['is_secure'] ) && ! $response['is_secure'] ) {
1750
-
$msg = __( 'WordPress has detected that your site is running on an insecure version of PHP.' );
1750
+
$msg = sprintf(
1751
+
/* translators: %s: The server PHP version. */
1752
+
__( 'Your site is running an insecure version of PHP (%s), and should be updated.' ),
1753
+
PHP_VERSION
1754
+
);
1751
1755
} else {
1752
-
$msg = __( 'WordPress has detected that your site is running on an outdated version of PHP.' );
1756
+
$msg = sprintf(
1757
+
/* translators: %s: The server PHP version. */
1758
+
__( 'Your site is running an outdated version of PHP (%s), and should be updated.' ),
1759
+
PHP_VERSION
1760
+
);
1753
1761
}
1754
-
1755
1762
?>
1756
1763
<p><?phpecho$msg; ?></p>
1757
1764
1758
1765
<h3><?php_e( 'What is PHP and how does it affect my site?' ); ?></h3>
1759
-
<p><?php_e( '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.' ); ?></p>
1766
+
<p>
1767
+
<?php
1768
+
printf(
1769
+
/* translators: %s: The minimum recommended PHP version. */
1770
+
__( 'PHP is the programming language used to build and maintain WordPress. Newer versions of PHP are created with increased performance in mind, so you may see a positive effect on your site’s performance. The minimum recommended version of PHP is %s.' ),
0 commit comments