Only unset query vars when serving admin pages. fixes #1979

git-svn-id: https://develop.svn.wordpress.org/trunk@3233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-29 06:44:44 +00:00
parent 6c0ae692ee
commit 007caf7c3c

View File

@ -1518,7 +1518,7 @@ class WP {
if (isset($error))
unset($error);
if ( isset($query_vars) )
if ( isset($query_vars) && strstr($_SERVER['PHP_SELF'], 'wp-admin/') )
unset($query_vars);
$this->did_permalink = false;