Use is_admin. Props markjaquith. see #5487
git-svn-id: https://develop.svn.wordpress.org/trunk@6509 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ec0a175f06
commit
b63e3868f1
@ -644,7 +644,7 @@ class WP_Query {
|
||||
if ('' != $qv['preview'])
|
||||
$this->is_preview = true;
|
||||
|
||||
if ( strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false )
|
||||
if ( is_admin() )
|
||||
$this->is_admin = true;
|
||||
|
||||
if ( false !== strpos($qv['feed'], 'comments-') ) {
|
||||
|
Loading…
Reference in New Issue
Block a user