From f6355997447ad72dbcbc5fdfb4776617de724743 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 28 Dec 2007 01:04:17 +0000 Subject: [PATCH] Use is_admin. Props markjaquith. see #5487 git-svn-id: http://svn.automattic.com/wordpress/trunk@6509 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 3cf87c50b..fae84ce81 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-') ) {