[wp-trac] [WordPress Trac] #10441: Show warning when deprecated hook is registered

WordPress Trac noreply at wordpress.org
Sat Jun 25 19:56:22 UTC 2016


#10441: Show warning when deprecated hook is registered
------------------------------------+---------------------------
 Reporter:  sirzooro                |       Owner:  boonebgorges
     Type:  feature request         |      Status:  closed
 Priority:  normal                  |   Milestone:  4.6
Component:  Plugins                 |     Version:
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37861"]:
 {{{
 #!CommitTicketReference repository="" revision="37861"
 Allow action and filter hooks to be deprecated.

 When a filter or action hook is deprecated, the corresponding
 `apply_filters()`
 or `do_action()` calls should be switched out with
 `apply_filters_deprecated()`
 or `do_action_deprecated()`. The latter functions will throw a deprecation
 before invoking the original hook.

 Props solarissmoke, SergeyBiryukov, DrewAPicture.
 Fixes #10441.
 }}}

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


More information about the wp-trac mailing list