From 5bdf7309166726d9b22293a92aa5f8da5e3a7279 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 28 Dec 2007 01:04:30 +0000 Subject: [PATCH] Use is_admin. Props markjaquith. see #5487 git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6510 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 28db7ba31e..564c47b843 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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-') ) {