[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 9 00:32:52 UTC 2016
#17817: do_action/apply_filters/etc. recursion on same filter kills underlying call
-------------------------------------------------+-------------------------
Reporter: kernfel | Owner: pento
Type: defect (bug) | Status: reopened
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):
Replying to [comment:233 dd32]:
> Once @jorbin's [attachment:17817.26.diff] is in, can't
[attachment:17817.25.diff] just be a check on `function_exists(
'add_filter' )` and use the API when available, falling back to directly
modifying when it's called before initialisation?
It doesn't need to wait for [attachment:17817.26.diff]. In the test suite,
`phpunit/includes/functions.php` is loaded, it plays some funky music,
then `wp-settings.php` is loaded - `WP_Hook` will be loaded the same
before or after whatever the fix for #37707 is.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17817#comment:235>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list