[wp-trac] [WordPress Trac] #36561: Deprecated notices should be classified as such.

WordPress Trac noreply at wordpress.org
Fri Nov 1 00:39:15 UTC 2019


#36561: Deprecated notices should be classified as such.
-----------------------------------+-------------------------------
 Reporter:  jrf                    |       Owner:  SergeyBiryukov
     Type:  enhancement            |      Status:  closed
 Priority:  normal                 |   Milestone:  5.4
Component:  General                |     Version:
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch 2nd-opinion  |     Focuses:  coding-standards
-----------------------------------+-------------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"46625" 46625]:
 {{{
 #!CommitTicketReference repository="" revision="46625"
 Code Modernization: Pass an appropriate error level to `trigger_error()`
 in `_doing_it_wrong()` and related functions:

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

 The error level passed is `E_USER_DEPRECATED` for the deprecated function
 group and `E_USER_NOTICE` for `_doing_it_wrong()`.

 Props jrf.
 Fixes #36561.
 }}}

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


More information about the wp-trac mailing list