[wp-trac] [WordPress Trac] #45986: Update the update-php URL and add annotation
WordPress Trac
noreply at wordpress.org
Wed Jan 16 17:05:42 UTC 2019
#45986: Update the update-php URL and add annotation
----------------------------------+-----------------------
Reporter: afragen | Owner: flixos90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.1
Component: Plugins | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch servehappy | Focuses:
----------------------------------+-----------------------
Changes (by flixos90):
* status: reviewing => closed
* resolution: => fixed
Comment:
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/45986#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list