[wp-trac] [WordPress Trac] #46074: Provide way for hosts to create a correctly labeled button or link to directly upgrade PHP
WordPress Trac
noreply at wordpress.org
Tue Mar 5 15:09:26 UTC 2019
#46074: Provide way for hosts to create a correctly labeled button or link to
directly upgrade PHP
-------------------------------------------------+-------------------------
Reporter: mikeschroder | Owner: afragen
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.1.1
Component: General | Version: 5.1
Severity: normal | Resolution:
Keywords: servehappy has-patch dev-feedback | Focuses:
has-screenshots |
-------------------------------------------------+-------------------------
Comment (by desrosj):
[attachment:"46074.2.diff"] worked great!
In [attachment:"46074.3.diff"], I pulled the code that determines the URL
into a separate function. This allows the URL to be retrieved and used in
different contexts without the default button. The main use case I had in
mind for this was a host filtering the information page URL to one within
the WordPress admin with their own branding. They could then output the
URL into a call to action on that page.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46074#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list