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:
ryan 2007-08-28 19:06:56 +00:00
parent c0287d8f23
commit 3fe16de587
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']) ) if ( !is_null($the_['function']) )
call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args'])); 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 );
} }