mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
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
This commit is contained in:
parent
27da557de4
commit
00c98cc513
@ -2163,13 +2163,13 @@ function remove_query_arg($key, $query) {
|
|||||||
return add_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,
|
global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query,
|
||||||
$wp_rewrite, $wpdb;
|
$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) {
|
function add_magic_quotes($array) {
|
||||||
|
Loading…
Reference in New Issue
Block a user