Make sure is_array before extract. Props idle. fixes #3626
git-svn-id: https://develop.svn.wordpress.org/trunk@4778 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bf8655a25f
commit
e8e964482d
@ -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'));
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user