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:
parent
cf3a6080bd
commit
3dc8c1dabe
|
@ -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