Changeset 12248
- Timestamp:
- 11/17/2022 01:32:09 AM (2 years ago)
- 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 25 25 } 26 26 27 return __( 'Get a faster, more secure website: update yourPHP today', 'wporg-forums' );27 return __( 'Get a faster, more secure website: update PHP today', 'wporg-forums' ); 28 28 } 29 29 add_filter( 'the_title', 'wporg_support_filter_update_php_title', 5, 2 ); … … 57 57 $content .= sprintf( 58 58 /* 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. Whilstyou 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' ), 60 60 esc_url( _x( 'https://wordpress.org/support/article/administration-screens/#updates', 'link URL about keeping WordPress up to date', 'wporg-forums' ) ) 61 61 ); … … 65 65 $content .= '<li>'; 66 66 $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’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' ) ), 69 70 RECOMMENDED_PHP 70 71 ); 71 72 $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>'; 73 80 $content .= '</ul>'; 74 81 $content .= '<p>' . __( 'And then there are a number of secondary benefits:', 'wporg-forums' ) . '</p>'; … … 80 87 $content .= '<p>' . __( 'These benefits are good for you, and good for your website’s visitors. These are the reasons you should update PHP today. The next section will show you how to do this.', 'wporg-forums' ) . '</p>'; 81 88 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 > 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’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’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 82 101 // Section "Before you update your PHP version". 83 102 $content .= '<h3>' . __( 'Before you update your PHP version', 'wporg-forums' ) . '</h3>'; … … 85 104 $content .= '<p>'; 86 105 $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’t <em>guarantee</em> that it’s not. WordPress itself works with PHP versions as far back as %1$s (we’re currently recommending version %2$s, so this is <em>great</em> backward compatibility!), but we don’t know if your themes or plugins will work. They should, and popular or reputable ones almost certainly will be, but we can’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’t <em>guarantee</em> that it’s not. WordPress itself works with PHP as far back as version %s, but we don’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 91 109 ); 92 110 $content .= '</p>'; 93 $content .= '<p>' . __( 'There are a couple of steps you should take to mitigate any riskbefore proceeding:', 'wporg-forums' ) . '</p>';111 $content .= '<p>' . __( 'There are a couple of steps you should take to avoid problems before proceeding:', 'wporg-forums' ) . '</p>'; 94 112 $content .= '<ul>'; 95 113 $content .= '<li>'; … … 100 118 ); 101 119 $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, checkyour 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 > 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>'; 103 121 $content .= '<li>'; 104 122 $content .= sprintf( … … 123 141 $content .= '<h3>' . __( 'How to update your website’s PHP version for a faster, more secure website', 'wporg-forums' ) . '</h3>'; 124 142 $content .= '<p>' . __( 'You’re now ready to update your website’s PHP version! You’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’s settings or asking them to do it.', 'wporg-forums' ) . '</p>';143 $content .= '<p>' . __( 'PHP is installed on your website’s server, so updating it involves either interacting with your host’s settings or asking your provider to do it for you.', 'wporg-forums' ) . '</p>'; 126 144 $content .= '<p>'; 127 145 $content .= sprintf( 128 146 /* 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’ve asked hosting companies to submit instructions on how to update your PHP version on their hosting, and <a href="%s">you’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’ve asked hosting companies to submit instructions on how to update your PHP version on their hosting, and <a href="%s">you’ll find a list of hosts who have instructions available here</a>.', 'wporg-forums' ), 130 148 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' ) ) 131 149 ); 132 150 $content .= '</p>'; 133 151 $content .= '<p>' . __( 'If you can’t find your host on this list, then email your hosting company and ask them to help! Here’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>'; 135 153 $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>'; 136 154 $content .= '<p>' . __( 'You should now have all the information you need to update! Nice work! With an up-to-date version of PHP you’ll enjoy a faster, more secure website and happier visitors.', 'wporg-forums' ) . '</p>';
Note: See TracChangeset
for help on using the changeset viewer.