From c1d27f3113f2913e30646b8b44d18f9bbc26b56b Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 4 Jun 2006 21:07:18 +0000 Subject: [PATCH] Undef var fix from Denis-de-Bernardy. fixes #2780 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3841 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index d9bf447737..2795be0e1f 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1252,6 +1252,7 @@ function remove_filter($tag, $function_to_remove, $priority = 10, $accepted_args // rebuild the list of filters if ( isset($wp_filter[$tag]["$priority"]) ) { + $new_function_list = array(); foreach($wp_filter[$tag]["$priority"] as $filter) { if ( $filter['function'] != $function_to_remove ) { $new_function_list[] = $filter;