Add get_query_var() wrapper for $wp_query->get().

git-svn-id: https://develop.svn.wordpress.org/trunk@1517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-08-08 16:47:22 +00:00
parent cf3a6080bd
commit 3dc8c1dabe
1 changed files with 6 additions and 0 deletions

View File

@ -1580,6 +1580,12 @@ function is_home () {
return $wp_query->is_home;
}
function get_query_var($var) {
global $wp_query;
return $wp_query->get($var);
}
function have_posts() {
global $wp_query;