Make WordPress Core


Ignore:
Timestamp:
08/31/2016 03:21:04 PM (10 years ago)
Author:
wonderboymusic
Message:

General: revert [38467], wp_is_IE() should not exist.

See #37699.

File:
1 edited

Legend:

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

    r38467 r38468  
    392392
    393393        /**
     394         *
     395         * @global bool $is_IE
    394396         * @param object $root
    395397         */
    396398        final protected function _render( $root ) {
     399                global $is_IE;
     400
    397401                // Add browser classes.
    398402                // We have to do this here since admin bar shows on the front end.
    399403                $class = 'nojq nojs';
    400                 if ( wp_is_IE() ) {
    401                         if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) ) {
     404                if ( $is_IE ) {
     405                        if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) )
    402406                                $class .= ' ie7';
    403                         } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) ) {
     407                        elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) )
    404408                                $class .= ' ie8';
    405                         } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) ) {
     409                        elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) )
    406410                                $class .= ' ie9';
    407                         }
    408411                } elseif ( wp_is_mobile() ) {
    409412                        $class .= ' mobile';
Note: See TracChangeset for help on using the changeset viewer.