From a7da7fc02745ebc3c38f95f701209e7da64b95ea Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 21 Jan 2007 20:03:02 +0000 Subject: [PATCH] Make sure is_array before extract. Props idle. fixes #3626 git-svn-id: http://svn.automattic.com/wordpress/trunk@4778 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 25c21dc23d..8c60a9cbc3 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -399,7 +399,8 @@ function load_template($_template_file) { global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment; - 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); } @@ -505,4 +506,4 @@ function add_custom_image_header($header_callback, $admin_header_callback) { add_action('admin_menu', array(&$GLOBALS['custom_image_header'], 'init')); } -?> \ No newline at end of file +?>