}
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.
$class .= ' ie8';
elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) )
$class .= ' ie9';
- } elseif ( $is_iphone ) {
+ } elseif ( wp_is_mobile() ) {
$class .= ' mobile';
}
do_action( 'add_admin_bar_menus' );
}
}
-?>