[wp-trac] [WordPress Trac] #19417: has_filter() can return 0, and remove_filter() doesn't use $accepted_args

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 20 13:52:41 UTC 2012


#19417: has_filter() can return 0, and remove_filter() doesn't use $accepted_args
------------------------------------+------------------
 Reporter:  nacin                   |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  3.5
Component:  Plugins                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch commit early  |
------------------------------------+------------------

Comment (by georgestephanis):

 In which case can we just include a `doing_it_wrong()` call or the like
 when some third-party code tries to pass something as priority zero?
 We're leaving a (small, but existant) hole open for people to do things
 that could lead to our checks in core returning an untrue result.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19417#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list