#46937 closed enhancement (fixed)
Provide update-php link on WordPress update failure screen
Reported by: | Hareesh Pillai | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.2.1 | Priority: | normal |
Severity: | normal | Version: | 5.2 |
Component: | Site Health | Keywords: | servehappy has-patch has-screenshots dev-feedback needs-testing i18n-change |
Focuses: | Cc: |
Description
When WordPress update fails due to an incompatible PHP version, the error message can be improved by displaying a link to the Update PHP page.
Attachments (7)
Change History (19)
This ticket was mentioned in Slack in #core by afragen. View the logs.
6 years ago
#4
@
6 years ago
- Keywords has-patch has-screenshots dev-feedback needs-testing added; needs-patch removed
Both of the patches 46937.diff and 46937-wpcs.diff should fix this issue. The second patch 46937-wpcs.diff also updates the modified files for WPCS.
If the host provides their own update URL the following is displayed.
This ticket was mentioned in Slack in #core-php by spacedmonkey. View the logs.
6 years ago
#10
@
6 years ago
Is there a plan for this to be backported to 5.1 installs? It seems like it'd be helpful to include for those users.
Note: See
TracTickets for help on using
tickets.
The screenshot above is from one of my sites not yet running PHP > 5.6
Here's the text for copy/paste purposes:
The notice is displayed twice I believe because I'm running an #en-au localized install.
Lets include a link to https://wordpress.org/support/update-php/ in that notice so that users can access a resource to help guide them to upgrading PHP so that they can upgrade WP
For a start a quick look reveals the helper
wp_get_update_php_url()
function, using that to create a patch to include the localised URL for each of the PHP upgrade messages in: