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:
parent
f3e07504ea
commit
5bdf730916
|
@ -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-') ) {
|
||||
|
|
Loading…
Reference in New Issue