[wp-trac] [WordPress Trac] #17817: do_action/apply_filters/etc. recursion on same filter kills underlying call

WordPress Trac noreply at wordpress.org
Sun Oct 4 20:15:29 UTC 2015


#17817: do_action/apply_filters/etc. recursion on same filter kills underlying call
-------------------------------------------------+-------------------------
 Reporter:  kernfel                              |       Owner:  nacin
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  4.4
Component:  Plugins                              |     Version:  2.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-unit-tests has-patch needs-      |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by jbrinley):

 In looking at @ocean90's issue, I realized that while `IteratorAggregate`
 is 5.2 compatible, the `ArrayIterator` it was returning is SPL.
 17817.8.diff reworks `WP_Hook` to implement `Iterator` instead of
 `IteratorAggregate`, handling the array traversal itself rather than
 delegating to `ArrayIterator`.

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


More information about the wp-trac mailing list