[wp-trac] [WordPress Trac] #49698: Issue with replacement for filter deprecation

WordPress Trac noreply at wordpress.org
Sun Jul 5 21:08:02 UTC 2020


#49698: Issue with replacement for filter deprecation
--------------------------+-----------------------------
 Reporter:  renathoc      |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.5
Component:  Plugins       |     Version:  5.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"48327" 48327]:
 {{{
 #!CommitTicketReference repository="" revision="48327"
 Plugins: Consistently use an empty string as the default value for
 `$replacement` and `$message` parameters in:

 * `_deprecated_function()`
 * `_deprecated_constructor()`
 * `_deprecated_file()`
 * `_deprecated_argument()`
 * `_deprecated_hook()`
 * `apply_filters_deprecated()`
 * `do_action_deprecated()`

 This matches the documented type of `string` for these parameters and
 removes unnecessarily strict `! is_null()` checks.

 Follow-up to [46792].

 Props jignesh.nakrani, renathoc, SergeyBiryukov.
 Fixes #49698.
 }}}

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


More information about the wp-trac mailing list