From 56a3ec113b4a671162cae468e1e0ba783a68ef4d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 4 Jun 2006 21:07:41 +0000 Subject: [PATCH] Undef var fix from Denis-de-Bernardy. fixes #2780 git-svn-id: https://develop.svn.wordpress.org/trunk@3842 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;