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:
Andrew Ozz
2012-04-10 01:19:30 +00:00
parent fdce6271d0
commit bce0d37a67
11 changed files with 87 additions and 59 deletions

View File

@@ -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';
}