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,6 +399,7 @@ 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;
|
||||
|
||||
if ( is_array($wp_query->query_vars) )
|
||||
extract($wp_query->query_vars, EXTR_SKIP);
|
||||
|
||||
require_once($_template_file);
|
||||
|
|
Loading…
Reference in New Issue