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:
parent
c444b2635d
commit
ee6ae5ccf7
|
@ -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 {
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue