diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
index 3a2d3a6..9d44a2b 100644
a
|
b
|
function wp_check_browser_version() { |
1615 | 1615 | */ |
1616 | 1616 | function wp_dashboard_php_nag() { |
1617 | 1617 | $response = wp_check_php_version(); |
1618 | | |
| 1618 | $version = phpversion(); |
| 1619 | |
1619 | 1620 | if ( ! $response ) { |
1620 | 1621 | return; |
1621 | 1622 | } |
1622 | 1623 | |
1623 | 1624 | if ( isset( $response['is_secure'] ) && ! $response['is_secure'] ) { |
1624 | | $msg = __( 'WordPress has detected that your site is running on an insecure version of PHP.' ); |
| 1625 | printf( |
| 1626 | '<p>WordPress has detected that your site is running on an insecure version of PHP %s.</p>', |
| 1627 | $version |
| 1628 | ); |
1625 | 1629 | } else { |
1626 | | $msg = __( 'WordPress has detected that your site is running on an outdated version of PHP.' ); |
| 1630 | printf( |
| 1631 | '<p>WordPress has detected that your site is running on an outdated version of PHP %s.</p>', |
| 1632 | $version |
| 1633 | ); |
1627 | 1634 | } |
1628 | 1635 | |
1629 | 1636 | ?> |
1630 | | <p><?php echo $msg; ?></p> |
1631 | 1637 | |
1632 | 1638 | <h3><?php _e( 'What is PHP and how does it affect my site?' ); ?></h3> |
1633 | 1639 | <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> |