[wp-trac] [WordPress Trac] #46044: Add `wp_get_update_php_annotation()` to return the Update PHP annotation

WordPress Trac noreply at wordpress.org
Tue Mar 19 16:53:52 UTC 2019


#46044: Add `wp_get_update_php_annotation()` to return the Update PHP annotation
-------------------------------------------------+-------------------------
 Reporter:  afragen                              |       Owner:  desrosj
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.2
Component:  Plugins                              |     Version:  5.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch servehappy dev-feedback    |     Focuses:
  commit                                         |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * owner:  (none) => desrosj
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44935" 44935]:
 {{{
 #!CommitTicketReference repository="" revision="44935"
 General: Improve the PHP update notice annotation.

 This change introduces the `wp_get_update_php_annotation()` function,
 which returns the message displayed when a host filters the direct PHP
 update or PHP update education URLs to indicate the information is site
 specific and provided by the host, not WordPress core.

 It also updates `wp_update_php_annotation()` to accept a `$before` and
 `$after` parameter, which makes this notice more flexible for displaying
 in multiple locations within the admin area. Previously, the markup output
 in `wp_update_php_annotation()` was hardcoded, which was making it
 difficult to display it properly in multiple locations.

 Props afragen, aaroncampbell, flixos90, TimothyBlynJacobs, desrosj.
 Fixes #46044.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46044#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list