mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Introduce wp_is_mobile() and use it instead of $is_iphone global, see #20014
git-svn-id: https://develop.svn.wordpress.org/trunk@20417 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -321,7 +321,7 @@ class WP_Admin_Bar {
|
||||
}
|
||||
|
||||
final protected function _render( $root ) {
|
||||
global $is_IE, $is_iphone;
|
||||
global $is_IE;
|
||||
|
||||
// Add browser classes.
|
||||
// We have to do this here since admin bar shows on the front end.
|
||||
@@ -333,7 +333,7 @@ class WP_Admin_Bar {
|
||||
$class .= ' ie8';
|
||||
elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) )
|
||||
$class .= ' ie9';
|
||||
} elseif ( $is_iphone ) {
|
||||
} elseif ( wp_is_mobile() ) {
|
||||
$class .= ' mobile';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user