From 3fe16de58708a2159b8793d61af1e0fb10b79f99 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 28 Aug 2007 19:06:56 +0000 Subject: [PATCH] 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 --- wp-includes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index 3466ed3202..43a8aba032 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -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 ); }