From 3dc8c1dabe78e871b8cffcba0c270b3e6c91099f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 8 Aug 2004 16:47:22 +0000 Subject: [PATCH] Add get_query_var() wrapper for $wp_query->get(). git-svn-id: https://develop.svn.wordpress.org/trunk@1517 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;