Undef var fix from Denis-de-Bernardy. fixes #2780

git-svn-id: https://develop.svn.wordpress.org/trunk@3842 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-06-04 21:07:41 +00:00
parent 2d8cde3b47
commit 56a3ec113b
1 changed files with 1 additions and 0 deletions

View File

@ -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;