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:
parent
6c0ae692ee
commit
007caf7c3c
@ -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
Block a user