Make WordPress Core

Ticket #41191: 41191.rewording.2.diff

File 41191.rewording.2.diff, 2.4 KB (added by schlessera, 7 years ago)

Change second heading to add meaning when read out of context

  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index fb7068ff11..db92a54e31 100644
    function wp_dashboard_php_nag() { 
    16221622
    16231623        $information_url = _x( 'https://wordpress.org/support/upgrade-php/', 'localized PHP upgrade information page' );
    16241624
    1625         $msg = __( 'Hi, it’s your friends at WordPress here.' );
    16261625        if ( ! $response['is_secure'] ) {
    1627                 $msg .= ' ' . __( 'We noticed that your site is running on an insecure version of PHP, which is why we’re showing you this notice.' );
     1626                $msg = __( 'WordPress has detected that your site is running on an insecure version of PHP, which is why we’re showing you this notice.' );
    16281627        } else {
    1629                 $msg .= ' ' . __( 'We noticed that your site is running on an outdated version of PHP, which is why we’re showing you this notice.' );
     1628                $msg = __( 'WordPress has detected that your site is running on an outdated version of PHP, which is why we’re showing you this notice.' );
    16301629        }
    16311630
    16321631        ?>
    function wp_dashboard_php_nag() { 
    16361635        <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>
    16371636        <p><?php _e( 'If you want to know exactly how PHP works and why it is important, continue reading.' ); ?></p>
    16381637
    1639         <h3><?php _e( 'Okay, how do I update?' ); ?></h3>
     1638        <h3><?php _e( 'How can I upgrade my PHP version?' ); ?></h3>
    16401639        <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>
    16411640        <p>
    16421641                <a class="button button-primary button-hero" href="<?php echo esc_url( $information_url ); ?>"><?php _e( 'Show me how to upgrade my PHP' ); ?></a>
    16431642        </p>
    16441643
    1645         <h3><?php _e( 'Thank you for taking the time to read this!' ); ?></h3>
    1646         <p><?php _e( 'If you carefully follow the instructions we&#8217;ve provided, upgrading shouldn&#8217;t take more than a few minutes, and it is generally very safe to do.' ); ?></p>
    1647         <p><?php _e( 'Good luck and happy blogging!' ); ?></p>
     1644        <p><?php _e( 'Upgrading usually takes only a few minutes and should be safe if you follow the provided instructions.' ); ?></p>
    16481645        <?php
    16491646}
    16501647