From 514c36a3bca4ae1d9378554fb48987ef3ee37c56 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 30 Aug 2005 19:01:45 +0000 Subject: [PATCH] Make sure extra_query_vars is an array instead of an empty string to avoid weird bug that can cause all query vars to be stomped in certain envs. git-svn-id: https://develop.svn.wordpress.org/trunk@2824 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index f173c73860..d02751478f 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -1323,6 +1323,8 @@ class WP { if (! empty($extra_query_vars)) parse_str($extra_query_vars, $extra_query_vars); + else + $extra_query_vars = array(); // Process PATH_INFO, REQUEST_URI, and 404 for permalinks. if ((isset($_GET['error']) && $_GET['error'] == '404') || @@ -1537,4 +1539,4 @@ class WP { } } -?> \ No newline at end of file +?>