[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 17:20:49 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 danielbachhuber):

 Replying to [comment:224 danielbachhuber]:
 > FYI - Because WP-CLI directly modifies the `$wp_filter` global, this
 `WP_Hook` thing breaks the implementation we adopted in #34936.

 As it turns out, WP-CLI broke because of poor coding on my part. My bad.
 See https://github.com/wp-cli/wp-cli/pull/3384 for the fix.

 However, I discovered this breaks the intent of #37707 because it depends
 on `WPINC`, which is only available after `wp-settings.php` has begun
 loading.

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


More information about the wp-trac mailing list