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

WordPress Trac noreply at wordpress.org
Thu Sep 8 15:45:13 UTC 2016


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

Comment (by jorbin):

 Replying to [comment:226 nerrad]:
 > So we were getting failing unit tests in our builds after this was
 deployed and so far it looks like it traces to our usage of the
 `tests_add_filter()` function found in `/tests/phpunit/functions.php`.
 That function overrides `$wp_filter` and doesn't implement the new
 changes.

 Can you provide a sample test that demonstrates this failure please.

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


More information about the wp-trac mailing list