From 00c98cc51348ddbbc9f057ca505af45a6e968b18 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 15 Nov 2006 22:29:20 +0000 Subject: [PATCH] Set extract type and rename car to avoid overwrites (backport from trunk [4469]) git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4471 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a831e6f46a..29eb6f03f6 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2163,13 +2163,13 @@ function remove_query_arg($key, $query) { return add_query_arg($key, '', $query); } -function load_template($file) { +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); + extract($wp_query->query_vars, EXTR_SKIP); - require_once($file); + require_once($_template_file); } function add_magic_quotes($array) {