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

git-svn-id: http://svn.automattic.com/wordpress/trunk@3233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-29 06:44:44 +00:00
parent 8cbfe2c46e
commit f57362c61c
1 changed files with 1 additions and 1 deletions

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;