[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 19:40:16 UTC 2019
#48817: do_action_deprecated and apply_filters_deprecated $replacement param should
default to null
--------------------------+-----------------------------
Reporter: felipeelia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
`_deprecated_hook`, the function responsible for logging an error when an
old hook is called, uses `is_null` to check if a `$replacement` was
provided.
The problem is that `$replacement` defaults to `false` (instead of `null`)
on `apply_filters_deprecated` and `do_action_deprecated`, displaying the
`Use %3$s instead.'` message without any value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48817>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list