From b63e3868f1f940a011c67f8c4491c176f746b3b6 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 28 Dec 2007 01:04:17 +0000 Subject: [PATCH] Use is_admin. Props markjaquith. see #5487 git-svn-id: https://develop.svn.wordpress.org/trunk@6509 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 3cf87c50bc..fae84ce818 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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-') ) {