Make WordPress Core


Ignore:
Timestamp:
04/10/2012 01:19:30 AM (13 years ago)
Author:
azaozz
Message:

Introduce wp_is_mobile() and use it instead of $is_iphone global, see #20014

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-admin-bar.php

    r19712 r20417  
    322322
    323323    final protected function _render( $root ) {
    324         global $is_IE, $is_iphone;
     324        global $is_IE;
    325325
    326326        // Add browser classes.
     
    334334            elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) )
    335335                $class .= ' ie9';
    336         } elseif ( $is_iphone ) {
     336        } elseif ( wp_is_mobile() ) {
    337337            $class .= ' mobile';
    338338        }
Note: See TracChangeset for help on using the changeset viewer.