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:
parent
8cbfe2c46e
commit
f57362c61c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue