WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/31/2016 06:41:07 AM (5 years ago)
Author:
wonderboymusic
Message:

General: use a new function, wp_is_IE(), instead of the $is_IE global in a number of places.

See #37699.

File:
1 edited

Legend:

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

    r38414 r38467  
    19461946}
    19471947
    1948 /**
    1949  *
    1950  * @global bool $is_IE
    1951  */
    19521948function _wp_admin_html_begin() {
    1953     global $is_IE;
    1954 
    19551949    $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
    19561950
    1957     if ( $is_IE )
     1951    if ( wp_is_IE() ) {
    19581952        @header('X-UA-Compatible: IE=edge');
     1953    }
    19591954
    19601955?>
Note: See TracChangeset for help on using the changeset viewer.