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: http://svn.automattic.com/wordpress/trunk@2824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-08-30 19:01:45 +00:00
parent c444b2635d
commit ee6ae5ccf7
1 changed files with 3 additions and 1 deletions

View File

@ -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 {
}
}
?>
?>