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
This commit is contained in:
parent
acfc53adce
commit
c1d27f3113
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue