#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: | Denis-de-Bernardy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 2.0.2 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Notice: Undefined variable: new_function_list in c:\Inetpub\wwwroot\wp\wp-includes\functions.php on line 1260
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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; }