Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 3 years ago

#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

Change History (5)

#1 @Denis-de-Bernardy
20 years ago

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;
}

#2 @ryan
20 years ago

  • Resolutionfixed
  • Status newclosed

(In [3841]) Undef var fix from Denis-de-Bernardy. fixes #2780

#3 @ryan
20 years ago

  • Resolutionfixed

(In [3842]) Undef var fix from Denis-de-Bernardy. fixes #2780

#4 @ryan
20 years ago

  • Milestone2.0.4

#5 @(none)
20 years ago

  • Milestone 2.0.4

Milestone 2.0.4 deleted

Note: See TracTickets for help on using tickets.