Use is_admin. Props markjaquith. see #5487

git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-12-28 01:04:30 +00:00
parent f3e07504ea
commit 5bdf730916
1 changed files with 1 additions and 1 deletions

View File

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