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

git-svn-id: http://svn.automattic.com/wordpress/trunk@6022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-09-03 19:56:09 +00:00
parent 58c7ce91e3
commit e468628526
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 () {