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:
parent
194ed8d5f9
commit
37704dc738
@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user