From 98a5598483a343f668e4181f3669d85f9dff616a Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 4 Jun 2006 21:07:41 +0000 Subject: [PATCH] Undef var fix from Denis-de-Bernardy. fixes #2780 git-svn-id: http://svn.automattic.com/wordpress/trunk@3842 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 5d030ee5b5..8d9f5d9d9d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1115,6 +1115,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;