[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:17:59 GMT 2007


2007/9/3, Nikolay Bachiyski <nbachiyski at developer.bg>:
> 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

And, as Mark pointed, it is in compat.php, so it was false alarm:
http://trac.wordpress.org/browser/trunk/wp-includes/compat.php#L140

Sorry  for the noise,
Nikolay.


More information about the wp-hackers mailing list