[wp-trac] [WordPress Trac] #17817: do_action/apply_filters/etc. recursion on same filter kills underlying call

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 11 15:32:26 UTC 2012


#17817: do_action/apply_filters/etc. recursion on same filter kills underlying call
--------------------------+-----------------------
 Reporter:  kernfel       |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Plugins       |     Version:
 Severity:  minor         |  Resolution:
 Keywords:                |
--------------------------+-----------------------
Changes (by mrubiolvn):

 * status:  closed => reopened
 * resolution:  duplicate =>


Comment:

 #21169 does not resolve this issue. The problem here is that the if we've
 got recursive calls on apply_filters, when we return one level up, the
 array pointer might not be in the expected position(because of the reset
 and next/each over the same array). That'd require to make a copy of
 $wp_filter[ $tag ], and iterate over the copy, to be fixed.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17817#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list