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

WordPress Trac noreply at wordpress.org
Fri Sep 2 09:35:36 UTC 2016


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

Comment (by noplanman):

 @pento Latest diff isn't working for me. It seems to be the issue of the
 pointer losing the correct position. (I think the loop on line `class-wp-
 hook.php:293`)

 Interestingly though, if I remove all references of `$nesting_level` (or
 rather, keep it at 0 always), it works perfectly for my initial issue
 #37679.

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


More information about the wp-trac mailing list