[wp-trac] [WordPress Trac] #49698: Issue with replacement for filter deprecation
WordPress Trac
noreply at wordpress.org
Wed Mar 25 15:05:19 UTC 2020
#49698: Issue with replacement for filter deprecation
--------------------------+-----------------------------
Reporter: renathoc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The function `apply_filters_deprecated` has the default value for the
`$replacement` argument as `false`.
This function uses the `_deprecated_hook`, sending the same `$replacement`
argument. But in the `_deprecated_hook`, it considers the default as
`null`.
So the problem occurs when we use the `apply_filters_deprecated` without a
replacement, the `with no alternative available` message is not shown, but
`Use instead.`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49698>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list