Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 21 months 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's profile Denis-de-Bernardy 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)

#1 @Denis-de-Bernardy
19 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
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

#3 @ryan
19 years ago

  • Resolution set to fixed

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

#4 @ryan
19 years ago

  • Milestone set to 2.0.4

#5 @(none)
19 years ago

  • Milestone 2.0.4 deleted

Milestone 2.0.4 deleted

Note: See TracTickets for help on using tickets.