[wp-trac] [WordPress Trac] #54440: Make remove_filter param type more inclusive

WordPress Trac noreply at wordpress.org
Tue Nov 23 19:10:24 UTC 2021


#54440: Make remove_filter param type more inclusive
--------------------------+--------------------------
 Reporter:  malthert      |       Owner:  johnbillion
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  5.9
Component:  Plugins       |     Version:  2.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+--------------------------

Comment (by johnbillion):

 I pushed some additions to the PR. The following functions (and their
 `WP_Hook` counterpart methods) all accept a callback that doesn't have to
 be a valid callable:

 * `remove_filter()`
 * `has_filter()`
 * `remove_action()`
 * `_wp_filter_build_unique_id()`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54440#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list