[wp-trac] [WordPress Trac] #41125: Add new `_deprecated_class()` function

WordPress Trac noreply at wordpress.org
Fri Aug 25 03:24:16 UTC 2023


#41125: Add new `_deprecated_class()` function
-------------------------+---------------------------
 Reporter:  jrf          |       Owner:  DrewAPicture
     Type:  enhancement  |      Status:  reviewing
 Priority:  normal       |   Milestone:  6.4
Component:  General      |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------------

Comment (by DrewAPicture):

 In [changeset:"56467" 56467]:
 {{{
 #!CommitTicketReference repository="" revision="56467"
 Introduce a `_deprecated_class()` function.

 Similar to other function in the `_deprecated_*` series,
 `_deprecated_class()` comes with two new hooks: `deprecated_class_run` and
 `deprecated_class_trigger_error`.

 Support has also been added for setting class deprecation expectations in
 tests.

 Props jrf, wvega, ohryan.
 See #41125.
 }}}

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


More information about the wp-trac mailing list