Making WordPress.org

Changeset 12248


Ignore:
Timestamp:
11/17/2022 01:32:09 AM (2 years ago)
Author:
dd32
Message:

Support: Update PHP page: Update the copy of the update PHP page.

Props ironprogrammer, azaozz, sabernhardt.
Closes https://github.com/WordPress/wordpress.org/pull/95.
See #6516.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/helphub-update-php-strings.php

    r8254 r12248  
    2525    }
    2626
    27     return __( 'Get a faster, more secure website: update your PHP today', 'wporg-forums' );
     27    return __( 'Get a faster, more secure website: update PHP today', 'wporg-forums' );
    2828}
    2929add_filter( 'the_title', 'wporg_support_filter_update_php_title', 5, 2 );
     
    5757    $content .= sprintf(
    5858        /* translators: %s: link URL about keeping WordPress up to date */
    59         __( 'PHP is the coding language WordPress is built on, and its version is set at the server-level by your hosting company. Whilst you may be familiar with the importance of <a href="%s">keeping WordPress, and your themes and plugins up-to-date</a>, keeping PHP up-to-date is just as important.', 'wporg-forums' ),
     59        __( 'PHP is one of the programming languages that WordPress is built on. Your hosting company determines which versions of PHP are available for your site, and many hosters let you change this yourself. And while you may be familiar with the importance of <a href="%s">keeping WordPress, and your themes and plugins up-to-date</a>, keeping PHP up-to-date is just as important.', 'wporg-forums' ),
    6060        esc_url( _x( 'https://wordpress.org/support/article/administration-screens/#updates', 'link URL about keeping WordPress up to date', 'wporg-forums' ) )
    6161    );
     
    6565    $content .= '<li>';
    6666    $content .= sprintf(
    67         /* translators: %s: recommended PHP version */
    68         __( '<strong>Your website will be faster</strong> as the latest version of PHP is more efficient. Updating to the latest supported version (currently %s) can deliver a huge performance increase; up to 3 or 4x faster for older versions.', 'wporg-forums' ),
     67        /* translators: 1: link URL to WordPress requirements page, 2: recommended PHP version */
     68        __( '<strong>Your website may be faster</strong> because PHP becomes more efficient with each new version. Updating to <a href="%1$s">WordPress&#8217;s recommended PHP version</a> (currently %2$s or higher) can deliver a performance increase that will benefit all visitors to your website.', 'wporg-forums' ),
     69        esc_url( _x( 'https://wordpress.org/about/requirements/', 'link URL to WordPress requirements page', 'wporg-forums' ) ),
    6970        RECOMMENDED_PHP
    7071    );
    7172    $content .= '</li>';
    72     $content .= '<li>' . __( '<strong>Your website will be more secure.</strong> PHP, like WordPress, is maintained by its community. Because PHP is so popular, it is a target for hackers – but the latest version will have the latest security features. Older versions of PHP <em>do not have this</em>, so updating is essential to keep your WordPress site secure.', 'wporg-forums' ) . '</li>';
     73    $content .= '<li>';
     74    $content .= sprintf(
     75        /* translators: %s: recommended PHP version */
     76        __( '<strong>Your website will be more secure.</strong> PHP, like WordPress, is maintained by its community. Because PHP is so popular, it is a target for hackers – but the latest version will have the latest security features. Older versions of PHP (lower than %s) <em>do not have this</em>, so updating is essential to keep your WordPress site secure.', 'wporg-forums' ),
     77        RECOMMENDED_PHP
     78    );
     79    $content .= '</li>';
    7380    $content .= '</ul>';
    7481    $content .= '<p>' . __( 'And then there are a number of secondary benefits:', 'wporg-forums' ) . '</p>';
     
    8087    $content .= '<p>' . __( 'These benefits are good for you, and good for your website&#8217;s visitors. These are the reasons you should update PHP today. The next section will show you how to do this.', 'wporg-forums' ) . '</p>';
    8188
     89    // Section "How to check your PHP version".
     90    $content .= '<h3>' . __( 'How to check your PHP version', 'wporg-forums' ) . '</h3>';
     91    $content .= '<p>' . __( 'To check what version of PHP your WordPress site is using, from the WordPress Dashboard, select <em>Tools &gt; Site Health</em> from the sidebar menu, and then select the Info tab. Expand the Server section and scroll down until you see <strong>PHP version</strong>.', 'wporg-forums' ) . '</p>';
     92    $content .= '<p>';
     93    $content .= sprintf(
     94        /* translators: %s: recommended PHP version */
     95        __( 'If this number is at or higher than PHP %s, then you don&#8217;t need to update PHP at this time!' ),
     96        RECOMMENDED_PHP
     97    );
     98    $content .= '</p>';
     99    $content .= '<p>' . __( 'However, if your site is lower than the recommended version, running on an outdated and insecure version of PHP, then it&#8217;s time to update. You also may have noticed a warning such as "PHP Update Required" or "PHP Update Recommended" on the Dashboard or in Site Health – these serve as important reminders to update PHP and make your site more secure.', 'wporg-forums' ) . '</p>';
     100
    82101    // Section "Before you update your PHP version".
    83102    $content .= '<h3>' . __( 'Before you update your PHP version', 'wporg-forums' ) . '</h3>';
     
    85104    $content .= '<p>';
    86105    $content .= sprintf(
    87         /* translators: 1: minimum required PHP version, 2: recommended PHP version */
    88         __( 'Updating your PHP version should not be a problem, but we can&#8217;t <em>guarantee</em> that it&#8217;s not. WordPress itself works with PHP versions as far back as %1$s (we&#8217;re currently recommending version %2$s, so this is <em>great</em> backward compatibility!), but we don&#8217;t know if your themes or plugins will work. They should, and popular or reputable ones almost certainly will be, but we can&#8217;t guarantee it.', 'wporg-forums' ),
    89         MINIMUM_PHP,
    90         RECOMMENDED_PHP
     106        /* translators: %s: minimum required PHP version */
     107        __( 'Updating your PHP version should not be a problem, but we can&#8217;t <em>guarantee</em> that it&#8217;s not. WordPress itself works with PHP as far back as version %s, but we don&#8217;t know if your themes or plugins will work on newer versions. They should, and popular or reputable ones almost certainly will, but they should be tested to make sure.', 'wporg-forums' ),
     108        MINIMUM_PHP
    91109    );
    92110    $content .= '</p>';
    93     $content .= '<p>' . __( 'There are a couple of steps you should take to mitigate any risk before proceeding:', 'wporg-forums' ) . '</p>';
     111    $content .= '<p>' . __( 'There are a couple of steps you should take to avoid problems before proceeding:', 'wporg-forums' ) . '</p>';
    94112    $content .= '<ul>';
    95113    $content .= '<li>';
     
    100118    );
    101119    $content .= '</li>';
    102     $content .= '<li>' . __( '<strong>Update WordPress, themes, and plugins:</strong> from your WordPress Dashboard, head to Updates, and then update all. You should do this regularly anyway. :) When done, check your site is working as expected.', 'wporg-forums' ) . '</li>';
     120    $content .= '<li>' . __( '<strong>Update WordPress, themes, and plugins:</strong> from your WordPress Dashboard, head to the Updates page under the <em>Dashboard &gt; Updates</em> menu, and then update everything. You should do this regularly anyway :). When done, check that your site is working as expected.', 'wporg-forums' ) . '</li>';
    103121    $content .= '<li>';
    104122    $content .= sprintf(
     
    123141    $content .= '<h3>' . __( 'How to update your website&#8217;s PHP version for a faster, more secure website', 'wporg-forums' ) . '</h3>';
    124142    $content .= '<p>' . __( 'You&#8217;re now ready to update your website&#8217;s PHP version! You&#8217;ve done due diligence, got backups, and are in the best possible shape to do the update.', 'wporg-forums' ) . '</p>';
    125     $content .= '<p>' . __( 'As the PHP version is set at the server level by your hosting company, updating involves either interacting with your host&#8217;s settings or asking them to do it.', 'wporg-forums' ) . '</p>';
     143    $content .= '<p>' . __( 'PHP is installed on your website&#8217;s server, so updating it involves either interacting with your host&#8217;s settings or asking your provider to do it for you.', 'wporg-forums' ) . '</p>';
    126144    $content .= '<p>';
    127145    $content .= sprintf(
    128146        /* translators: %s: link URL to hosting-specific update resources */
    129         __( 'Thus, exactly <em>how</em> to do the update depends on your hosting company. We&#8217;ve asked hosting companies to submit instructions on how to update your PHP version on their hosting, and <a href="%s">you&#8217;ll find a list of hosts who have instructions available here</a>.', 'wporg-forums' ),
     147        __( 'Exactly <em>how</em> to do the update depends on your hosting company. We&#8217;ve asked hosting companies to submit instructions on how to update your PHP version on their hosting, and <a href="%s">you&#8217;ll find a list of hosts who have instructions available here</a>.', 'wporg-forums' ),
    130148        esc_url( _x( 'https://github.com/WordPress/servehappy-resources/blob/master/tutorials/hosting-specific/tutorials-en.md', 'link URL to hosting-specific update resources', 'wporg-forums' ) )
    131149    );
    132150    $content .= '</p>';
    133151    $content .= '<p>' . __( 'If you can&#8217;t find your host on this list, then email your hosting company and ask them to help! Here&#8217;s some template text you can use:', 'wporg-forums' ) . '</p>';
    134     $content .= '<pre>' . __( 'Dear Hosting Provider,<br><br>I want my website to be as performant and secure as<br>possible with the latest version of PHP. For the server<br>my WordPress site is hosted on, I want to ensure that<br>is the case. If I am not already on the latest version<br>of PHP, please let me know what steps I need to take<br>to update.<br><br>Thanks!', 'wporg-forums' ) . '</pre>';
     152    $content .= '<pre>' . __( 'Dear Hosting Provider,<br><br>I want my WordPress website to be as performant and<br>secure as possible with the latest version of PHP.<br>If the server my site is hosted on is not already on<br>the latest version of PHP, please let me know what<br>steps I need to take to update it.<br><br>Thanks!', 'wporg-forums' ) . '</pre>';
    135153    $content .= '<p>' . __( 'If you run into any issues at this stage, either change the PHP version back yourself, contact your hosting company or a professional web developer. In the unlikely event something goes wrong and you need to restore your backup, contact your host and ask them to restore the previous version of PHP you had running. You can then restore your backup.', 'wporg-forums' ) . '</p>';
    136154    $content .= '<p>' . __( 'You should now have all the information you need to update! Nice work! With an up-to-date version of PHP you&#8217;ll enjoy a faster, more secure website and happier visitors.', 'wporg-forums' ) . '</p>';
Note: See TracChangeset for help on using the changeset viewer.