[wp-trac] [WordPress Trac] #10441: Show warning when deprecated hook is registered
WordPress Trac
noreply at wordpress.org
Tue Jun 28 20:36:28 UTC 2016
#10441: Show warning when deprecated hook is registered
------------------------------------+---------------------------
Reporter: sirzooro | Owner: boonebgorges
Type: feature request | Status: reopened
Priority: normal | Milestone: 4.6
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+---------------------------
Comment (by flixos90):
Replying to [comment:40 TimothyBlynJacobs]:
> I think there is an issue with the current version with
`apply_filters_deprecated`.
>
> If no hook is registered for that tag, the function bails early and
returns null instead of the original value. Shouldn't it return the first
`$args`?
I agree, that is definitely a bug to me. Fixed it in
[attachment:10441.3.diff].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10441#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list