[wp-trac] [WordPress Trac] #39338: class-wp-hook.php - apply_filters() infinite loop

WordPress Trac noreply at wordpress.org
Tue Dec 20 09:42:55 UTC 2016


#39338: class-wp-hook.php - apply_filters() infinite loop
-------------------------------+------------------------------
 Reporter:  frettled           |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Plugins            |     Version:  4.7
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by pento):

 Replying to [comment:4 dd32]:
 > @pento - I'm assuming `WP_Hook->callbacks` is only public for
 `remove_filter()`? or was there something else that it's used for?

 It's also there for legacy access - if some code needs to modify
 `$wp_filter` before the helpers are available, or if it needs to look at
 all of the filters (filter debug plugins, for example).

 It's [https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-
 actions-and-filters/ recommended as an option for those who need access].

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


More information about the wp-trac mailing list