From 0459826bd3f0ef4061343054922096c32e86bbe2 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Mon, 3 Sep 2007 19:56:09 +0000 Subject: [PATCH] Check for wp-admin case-insensitively in is_admin() git-svn-id: https://develop.svn.wordpress.org/trunk@6022 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 9fef6fe3a6..1b31d1317a 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -34,7 +34,7 @@ function wp_reset_query() { function is_admin () { global $wp_query; - return ($wp_query->is_admin || (strpos($_SERVER['REQUEST_URI'], 'wp-admin/') !== false)); + return ($wp_query->is_admin || (stripos($_SERVER['REQUEST_URI'], 'wp-admin/') !== false)); } function is_archive () {