From 37704dc73818b7745eaaecabb35045dc27642c55 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@5958 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ); }