Check for wp-admin case-insensitively in is_admin()

git-svn-id: https://develop.svn.wordpress.org/trunk@6022 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-09-03 19:56:09 +00:00
parent c8e307e72f
commit 0459826bd3
1 changed files with 1 additions and 1 deletions

View File

@ -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 () {