﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
19015,do_action fails on nested calls,mrubiolvn,,"I'll explain directly with an example of the scenario, for better understanding I hope.

A function registered through add_action('save_post','callme_back');

with the following code:

{{{
function callme_back($postId) {
    static $runmeOnce=true;
   if ($runmeOnce) {
     $runmeOnce = false;
     wp_insert_post(get_post(21431/*whatever, just to trigger save_post again*/));
    }
}
}}}

causes the internal array pointer of $wp_filter[ $tag ] to skip all
the remaining calls to the filters for $postId, as a result of having already called all of them for $postId+1 and reached the end of the pointer.

A solution is making a copy of $wp_filter[ $tag ] first.",defect (bug),closed,normal,,Plugins,3.2.1,normal,duplicate,,scribu
