mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-06 01:10:04 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user