Undef var fix from Denis-de-Bernardy. fixes #2780
git-svn-id: http://svn.automattic.com/wordpress/trunk@3842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8ea8979b73
commit
98a5598483
|
@ -1115,6 +1115,7 @@ function remove_filter($tag, $function_to_remove, $priority = 10, $accepted_args
|
||||||
|
|
||||||
// rebuild the list of filters
|
// rebuild the list of filters
|
||||||
if ( isset($wp_filter[$tag]["$priority"]) ) {
|
if ( isset($wp_filter[$tag]["$priority"]) ) {
|
||||||
|
$new_function_list = array();
|
||||||
foreach($wp_filter[$tag]["$priority"] as $filter) {
|
foreach($wp_filter[$tag]["$priority"] as $filter) {
|
||||||
if ( $filter['function'] != $function_to_remove ) {
|
if ( $filter['function'] != $function_to_remove ) {
|
||||||
$new_function_list[] = $filter;
|
$new_function_list[] = $filter;
|
||||||
|
|
Loading…
Reference in New Issue