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:
parent
58c7ce91e3
commit
e468628526
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue