Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#3626 closed defect (bug) (fixed)

load_template() notice

Reported by: idle's profile idle Owned by:
Milestone: 2.0.8 Priority: low
Severity: trivial Version: 2.0.7
Component: General Keywords: has-patch
Focuses: Cc:

Description

In function load_template() a PHP notice is generated because of an empty array under some circumstances (unknown to me at this point). The line is:

	extract($wp_query->query_vars, EXTR_SKIP);

Fix: Make sure that the passed variable is an array.

	if ( is_array($wp_query->query_vars) ) {
		extract($wp_query->query_vars, EXTR_SKIP);
	}

Change History (3)

#1 @Viper007Bond
16 years ago

  • Keywords has-patch added; load_template notice extract removed

#2 @ryan
16 years ago

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

(In [4777]) Make sure is_array before extract. Props idle. fixes #3626

#3 @ryan
16 years ago

(In [4778]) Make sure is_array before extract. Props idle. fixes #3626

Note: See TracTickets for help on using tickets.