From 093275f189252d1d58dde45b872f8c3fdb9369a8 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 21 Jan 2007 20:02:45 +0000 Subject: [PATCH] Make sure is_array before extract. Props idle. fixes #3626 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4777 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b595e41db7..7c6a744105 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2167,7 +2167,8 @@ function load_template($_template_file) { global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query, $wp_rewrite, $wpdb; - extract($wp_query->query_vars, EXTR_SKIP); + if ( is_array($wp_query->query_vars) ) + extract($wp_query->query_vars, EXTR_SKIP); require_once($_template_file); }