mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 04:25:07 +00:00
Remove reference to a global eliminated long ago. props tamlyn, fixes #20668.
git-svn-id: http://core.svn.wordpress.org/trunk@20872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9dc633d261
commit
111f59eac5
@ -381,7 +381,7 @@ function locate_template($template_names, $load = false, $require_once = true )
|
|||||||
* @param bool $require_once Whether to require_once or require. Default true.
|
* @param bool $require_once Whether to require_once or require. Default true.
|
||||||
*/
|
*/
|
||||||
function load_template( $_template_file, $require_once = true ) {
|
function load_template( $_template_file, $require_once = true ) {
|
||||||
global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
|
global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
|
||||||
|
|
||||||
if ( is_array( $wp_query->query_vars ) )
|
if ( is_array( $wp_query->query_vars ) )
|
||||||
extract( $wp_query->query_vars, EXTR_SKIP );
|
extract( $wp_query->query_vars, EXTR_SKIP );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user