[wp-trac] [WordPress Trac] #48817: do_action_deprecated and apply_filters_deprecated $replacement param should default to null
WordPress Trac
noreply at wordpress.org
Wed Nov 27 23:53:43 UTC 2019
#48817: do_action_deprecated and apply_filters_deprecated $replacement param should
default to null
--------------------------------------+-----------------------------
Reporter: felipeelia | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.4
Component: Plugins | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"46792" 46792]:
{{{
#!CommitTicketReference repository="" revision="46792"
Plugins: Correct default value of `$replacement` parameter in
`do_action_deprecated()` and `apply_filters_deprecated()`.
This addresses an inconsistency with `_deprecated_hook()`, which uses
`is_null()` to check if `$replacement` was provided, however the previous
default value was `false`.
Props shaampk1, felipeelia.
Fixes #48817.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48817#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list