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:
parent
73402f0741
commit
fe54ac2427
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue