From fe54ac2427b8f56adb4121da32a584bf63b4d698 Mon Sep 17 00:00:00 2001 From: rboren Date: Sun, 8 Aug 2004 16:47:22 +0000 Subject: [PATCH] Add get_query_var() wrapper for $wp_query->get(). git-svn-id: http://svn.automattic.com/wordpress/trunk@1517 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a2904da2d6..0f7134f2e1 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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;