[wp-trac] Re: [WordPress Trac] #2780: Notice: Undefined variable:
new_function_list in c:\Inetpub\wwwroot\wp\wp-includes\functions.php on
line 1260
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 3 18:49:29 GMT 2006
#2780: Notice: Undefined variable: new_function_list in c:\Inetpub\wwwroot\wp\wp-
includes\functions.php on line 1260
----------------------------+-----------------------------------------------
Id: 2780 | Status: new
Component: Administration | Modified: Sat Jun 3 18:49:29 2006
Severity: normal | Milestone:
Priority: normal | Version: 2.0.2
Owner: anonymous | Reporter: Denis-de-Bernardy
----------------------------+-----------------------------------------------
Comment (by Denis-de-Bernardy):
fix:
{{{
function remove_filter($tag, $function_to_remove, $priority = 10,
$accepted_args = 1) {
global $wp_filter;
// 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;
}
}
$wp_filter[$tag]["$priority"] = $new_function_list;
}
return true;
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/2780>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list