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:
Ryan Boren 2007-12-28 01:04:17 +00:00
parent ec0a175f06
commit b63e3868f1
1 changed files with 1 additions and 1 deletions

View File

@ -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-') ) {