[wp-trac] [WordPress Trac] #40906: apply_filters skip all handlers in the next priority, when remove_filter is called

WordPress Trac noreply at wordpress.org
Fri Jun 2 03:02:24 UTC 2017


#40906: apply_filters skip all handlers in the next priority, when remove_filter is
called
--------------------------+------------------------------
 Reporter:  wvega         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by wvega):

 Also, if keeping `$this->callbacks[ $priority ]` around, even when empty,
 is possible, could be `$this->resort_active_iterations()` avoided inside
 `WP_Hook::remove_filter`?

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


More information about the wp-trac mailing list