#2780 closed defect (bug) (fixed)
Notice: Undefined variable: new_function_list in c:\Inetpub\wwwroot\wp\wp-includes\functions.php on line 1260
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 2.0.2 |
| Component: | Administration | Keywords: | |
| Focuses: | Cc: |
Description
Notice: Undefined variable: new_function_list in c:\Inetpub\wwwroot\wp\wp-includes\functions.php on line 1260
Change History (5)
Note: See
TracTickets for help on using
tickets.
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; }