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

WordPress Trac noreply at wordpress.org
Sun Nov 14 19:02:01 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:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 remove_filter/remove_action $callback type can be string/array too, not
 just callable, which is why it makes sense to make it more inclusive.

 (e.g. if theme/plugin has code to remove_action for a function/action that
 might not exist, it would make no sense if we would have to check if it's
 callable before calling remove_action on it, since this logic is already
 there in remove_action)

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


More information about the wp-trac mailing list