declare $user_ID global in load_template(). fixes #4354.
git-svn-id: https://develop.svn.wordpress.org/trunk@5581 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0f5fa587a2
commit
d7ed90532a
@ -427,7 +427,7 @@ function get_comments_popup_template() {
|
||||
|
||||
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;
|
||||
$wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
|
||||
|
||||
if ( is_array($wp_query->query_vars) )
|
||||
extract($wp_query->query_vars, EXTR_SKIP);
|
||||
|
Loading…
Reference in New Issue
Block a user