[wp-trac] [WordPress Trac] #48251: Remove "private" assignation from _deprecated_...() and _doing_it_wrong()

WordPress Trac noreply at wordpress.org
Sun Oct 27 14:19:24 UTC 2019


#48251: Remove "private" assignation from _deprecated_...() and _doing_it_wrong()
--------------------------+-----------------------------
 Reporter:  jrf           |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.4
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"46602" 46602]:
 {{{
 #!CommitTicketReference repository="" revision="46602"
 Docs: Remove "private" designation from `_doing_it_wrong()` and related
 functions:

 * `_deprecated_function()`
 * `_deprecated_argument()`
 * `_deprecated_constructor()`
 * `_deprecated_file()`

 Plugins and themes should be allowed to use these functions to throw
 appropriate error notices.

 This brings them in line with newer `do_action_deprecated()` and
 `apply_filters_deprecated()` functions, which are not marked as private.

 Props jrf.
 Fixes #48251.
 }}}

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


More information about the wp-trac mailing list