Ensure $is_chrome is always defined.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
34e6722704
commit
a2da0c0e99
|
@ -34,7 +34,7 @@ if ( is_admin() ) {
|
|||
}
|
||||
|
||||
// Simple browser detection
|
||||
$is_lynx = $is_gecko = $is_winIE = $is_macIE = $is_opera = $is_NS4 = $is_safari = false;
|
||||
$is_lynx = $is_gecko = $is_winIE = $is_macIE = $is_opera = $is_NS4 = $is_safari = $is_chrome = false;
|
||||
|
||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Lynx') !== false) {
|
||||
$is_lynx = true;
|
||||
|
|
Loading…
Reference in New Issue