Skip to content
This repository
Browse code

use the same vars WordPress does in load_template(), props mattwiebe h…

  • Loading branch information...
commit 2a7683ac47f4e5d1e21b5263bde19a3bc209e908 1 parent 3edbe15
Alex King alexkingorg authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  utility.php
2  utility.php
@@ -311,7 +311,7 @@ function cfct_template($dir, $keys = array()) {
311 311 **/
312 312 function cfct_template_file($dir, $file, $data = array()) {
313 313 // bring in expected globals so that templates don't need to bring them in
314   - global $id, $post, $wp_query, $wpdb, $blog_id, $pagenow, $current_user, $p, $post_parent, $pagename, $page_id, $posts;
  314 + global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
315 315 $path = '';
316 316 if (!empty($file)) {
317 317 $file = basename($file, '.php');

0 comments on commit 2a7683a

Please sign in to comment.
Something went wrong with that request. Please try again.