mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Small update to Gears info messages and simple Safari detection. Fixes #7380 for 2.7
git-svn-id: https://develop.svn.wordpress.org/trunk@8406 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -34,10 +34,12 @@ if ( is_admin() ) {
|
||||
}
|
||||
|
||||
// Simple browser detection
|
||||
$is_lynx = $is_gecko = $is_winIE = $is_macIE = $is_opera = $is_NS4 = false;
|
||||
$is_lynx = $is_gecko = $is_winIE = $is_macIE = $is_opera = $is_NS4 = $is_safari = false;
|
||||
|
||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Lynx') !== false) {
|
||||
$is_lynx = true;
|
||||
} elseif ( strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') !== false ) {
|
||||
$is_safari = true;
|
||||
} elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') !== false) {
|
||||
$is_gecko = true;
|
||||
} elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false && strpos($_SERVER['HTTP_USER_AGENT'], 'Win') !== false) {
|
||||
|
||||
Reference in New Issue
Block a user