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

git-svn-id: http://svn.automattic.com/wordpress/trunk@1517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-08-08 16:47:22 +00:00
parent 73402f0741
commit fe54ac2427
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;