mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
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: http://svn.automattic.com/wordpress/trunk@5958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c0287d8f23
commit
3fe16de587
@ -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