[wp-trac] [WordPress Trac] #29070: Calling remove_all_filters() causes has_filter() with no $function_to_check to always return true

WordPress Trac noreply at wordpress.org
Thu Aug 7 02:29:18 UTC 2014


#29070: Calling remove_all_filters() causes has_filter() with no $function_to_check
to always return true
-------------------------------------+-----------------------------
 Reporter:  pseudoxiah               |       Owner:  wonderboymusic
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.0
Component:  Plugins                  |     Version:  trunk
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"29422"]:
 {{{
 #!CommitTicketReference repository="" revision="29422"
 After [28883], ensure that priorities have callbacks before returning
 `true` in `has_filter()`.

 Adds unit tests.

 Props boonebgorges.
 Fixes #29070.
 }}}

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


More information about the wp-trac mailing list