[wp-hackers] Re: [wp-svn] [6022] trunk/wp-includes/query.php: Check
for wp-admin case-insensitively in is_admin()
Nikolay Bachiyski
nbachiyski at developer.bg
Mon Sep 3 20:12:26 GMT 2007
2007/9/3, m at wordpress.org <m at wordpress.org>:
> ...
> Log Message Check for wp-admin case-insensitively in is_admin()
>
> ...
> (strpos($_SERVER['REQUEST_URI'], 'wp-admin/') !== false));
> + return ($wp_query->is_admin ||
> (stripos($_SERVER['REQUEST_URI'], 'wp-admin/') !== false));
stripos is php5 only: http://php.net/stripos
Happy hacking,
Nikolay.
More information about the wp-hackers
mailing list