explicitly check next() against FALSE in do_action_ref_array(). Props Denis-de-Bernardy, Otto42, Nazgul, santosj, DD32. fixes #4625 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@5958 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-08-28 19:06:56 +00:00
parent 194ed8d5f9
commit 37704dc738
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ function do_action_ref_array($tag, $args) {
if ( !is_null($the_['function']) )
call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
} while ( next($wp_filter[$tag]) );
} while ( next($wp_filter[$tag]) !== false );
}