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
This commit is contained in:
parent
1e019126eb
commit
a7da7fc027
|
@ -399,7 +399,8 @@ function load_template($_template_file) {
|
||||||
global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query,
|
global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query,
|
||||||
$wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment;
|
$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);
|
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'));
|
add_action('admin_menu', array(&$GLOBALS['custom_image_header'], 'init'));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue