mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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-') ) {
|
||||
|
||||
Reference in New Issue
Block a user