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

WordPress Trac noreply at wordpress.org
Fri Aug 25 03:36:15 UTC 2023


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

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


Comment:

 In [changeset:"56469" 56469]:
 {{{
 #!CommitTicketReference repository="" revision="56469"
 Properly deprecate both constructors in `WP_User_Search`.

 - `__construct()` gets the new `_deprecated_class()` function
 - `WP_User_Search` PHP4 style constructor is changed from
 `_deprecated_function()` to `_deprecated_constructor()`

 Adds a test to confirm `WP_User_Search` class is testable as deprecated.

 Props jrf, DrewAPicture.
 Fixes #41125.
 }}}

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


More information about the wp-trac mailing list