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;