[wp-trac] [WordPress Trac] #54440: Make remove_filter param type more inclusive
WordPress Trac
noreply at wordpress.org
Sun Nov 14 21:07:11 UTC 2021
#54440: Make remove_filter param type more inclusive
-----------------------------------+------------------------------
Reporter: malthert | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 2.2
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses: docs
-----------------------------------+------------------------------
Changes (by johnbillion):
* keywords: has-patch => has-patch 2nd-opinion
Comment:
I understand the concern is that the string or array passed to this
function does not have to be a valid callable, hence the suggestion to
change the docblock to `callable|string|array`.
For example:
{{{
remove_action( 'foo', 'this_function_may_or_may_not_exist' );
}}}
The above is valid use of this function even though the `$callback`
parameter is not a `callable`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54440#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list