[wp-trac] [WordPress Trac] #17817: do_action/apply_filters/etc. recursion on same filter kills underlying call
WordPress Trac
noreply at wordpress.org
Tue Sep 6 15:15:16 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 has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by pento):
Noice. `::do_action()` didn't like it when an action was called
recursively. :-)
[attachment:17817.23.diff] fixes this by adding a recursion check to
`::do_action()`. It also updates `test_do_action_doesnt_change_value` to
test for recursion, too.
https://travis-ci.org/aaronjorbin/develop.wordpress/builds/157912226
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17817#comment:208>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list