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

WordPress Trac noreply at wordpress.org
Tue Dec 20 08:39:20 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:                |     Focuses:
--------------------------+------------------------------

Comment (by dhanendran):

 Hi @frettled

 `$this->iterations[ $nesting_level ]` can't be `null`.
 {{{
 $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 }}}

 `array_keys()` will return empty array, if it don't have any values in
 `$this->callbacks`.

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


More information about the wp-trac mailing list