diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php
index d6ba54dd71..f19a43d096 100644
--- a/wp-admin/admin-header.php
+++ b/wp-admin/admin-header.php
@@ -75,6 +75,7 @@ unset($hook_suffixes, $hook_suffix);
![Gear](images/gear.png)
@@ -90,7 +91,7 @@ if ( ! $is_opera ) {
-
+
@@ -98,13 +99,12 @@ if ( ! $is_opera ) {
-
%2$s!'), 'profile.php', $user_identity) ?> | | Help') ?> | Forums'); if ( ! $is_opera ) { ?> |
diff --git a/wp-includes/vars.php b/wp-includes/vars.php
index 77e9ca3e76..a29ea2f4cd 100644
--- a/wp-includes/vars.php
+++ b/wp-includes/vars.php
@@ -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) {