[wp-trac] [WordPress Trac] #43986: Disable "Install Plugin" button for PHP required version mismatch
WordPress Trac
noreply at wordpress.org
Wed Jan 16 17:05:42 UTC 2019
#43986: Disable "Install Plugin" button for PHP required version mismatch
-------------------------------------------------+-------------------------
Reporter: schlessera | Owner: afragen
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 5.1
Component: Plugins | Version:
Severity: major | Resolution: fixed
Keywords: needs-unit-tests servehappy has- | Focuses:
patch ux-feedback |
-------------------------------------------------+-------------------------
Comment (by flixos90):
In [changeset:"44627" 44627]:
{{{
#!CommitTicketReference repository="" revision="44627"
Plugins: Use centralized API to display information about updating PHP
when a plugin requires a higher version.
This changeset uses the API functions introduced in [44476] to link to the
resource about updating PHP when highlighting a plugin's required PHP
version is not met. It furthermore expands them, introducing a new
`wp_update_php_annotation()` function that prints the markup to indicate
that the default URL has been altered by the web host, allowing it to be
reused universally.
Furthermore, this changeset adds missing `update_php` capability checks
before displaying the information about updating PHP.
Props afragen.
Fixes #45986. See #43986, #45686.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43986#comment:99>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list