WordPress.org

Make WordPress Core

Ticket #46326: 46326.2.diff

File 46326.2.diff, 942 bytes (added by bhargavmehta, 13 months ago)

Modified for translations

  • wp-admin/includes/dashboard.php

     
    16151615 */
    16161616function wp_dashboard_php_nag() {
    16171617        $response = wp_check_php_version();
     1618        $version  = phpversion();
    16181619
    16191620        if ( ! $response ) {
    16201621                return;
     
    16211622        }
    16221623
    16231624        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                $msg = sprintf( __( 'WordPress has detected that your site is running on an insecure version of PHP %s.' ) , $version );
    16251626        } else {
    1626                 $msg = __( 'WordPress has detected that your site is running on an outdated version of PHP.' );
     1627                $msg = sprintf( __( 'WordPress has detected that your site is running on an outdated version of PHP %s.' ) , $version );
    16271628        }
    16281629
    16291630        ?>