Make WordPress Core

Ticket #41191: 41191.11.diff

File 41191.11.diff, 2.3 KB (added by danieltj, 6 years ago)

Rewrote some wording and removed unnecessary explanations.

  • wp-admin/includes/dashboard.php

    diff --git wp-admin/includes/dashboard.php wp-admin/includes/dashboard.php
    index 7a268ab..262d82a 100644
    function wp_dashboard_php_nag() { 
    16211621        $information_url = _x( 'https://wordpress.org/support/upgrade-php/', 'localized PHP upgrade information page' );
    16221622
    16231623        if ( ! $response['is_secure'] ) {
    1624                 $msg = __( 'WordPress has detected that your site is running on an insecure version of PHP, which is why we’re showing you this notice.' );
     1624                $msg = __( 'WordPress has detected that your site is running on an insecure version of PHP, which is why we’re showing you this notice. Upgrading to a newer version of PHP is safe and only a few minutes.' );
    16251625        } else {
    1626                 $msg = __( 'WordPress has detected that your site is running on an outdated version of PHP, which is why we’re showing you this notice.' );
     1626                $msg = __( 'WordPress has detected that your site is running on an outdated version of PHP, which is why we’re showing you this notice. Upgrading to a newer version of PHP is safe and only a few minutes.' );
    16271627        }
    16281628
    16291629        ?>
    function wp_dashboard_php_nag() { 
    16311631
    16321632        <h3><?php _e( 'What is PHP and why should I care?' ); ?></h3>
    16331633        <p><?php _e( 'PHP is the programming language that WordPress is built on. Newer versions of PHP are both faster and more secure, so upgrading is better for your site, and better for the people who are building WordPress.' ); ?></p>
    1634         <p><?php _e( 'If you want to know exactly how PHP works and why it is important, continue reading.' ); ?></p>
    16351634
    16361635        <h3><?php _e( 'How can I upgrade my PHP version?' ); ?></h3>
    16371636        <p><?php _e( 'The button below will take you to a page with more details on what PHP is, how to upgrade your PHP version, and what to do if it turns out you can&#8217;t.' ); ?></p>
     1637
    16381638        <p>
    1639                 <a class="button button-primary button-hero" href="<?php echo esc_url( $information_url ); ?>"><?php _e( 'Show me how to upgrade my PHP' ); ?></a>
     1639                <a class="button button-primary button-hero" href="<?php echo esc_url( $information_url ); ?>"><?php _e( 'Show me how to upgrade PHP' ); ?></a>
    16401640        </p>
    16411641
    1642         <p><?php _e( 'Upgrading usually takes only a few minutes and should be safe if you follow the provided instructions.' ); ?></p>
    16431642        <?php
    16441643}
    16451644