Make WordPress Core


Ignore:
Timestamp:
08/31/2016 06:41:07 AM (8 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-includes/media-template.php

    r38424 r38467  
    134134 *
    135135 * @since 3.5.0
    136  *
    137  * @global bool $is_IE
    138136 */
    139137function wp_print_media_templates() {
    140     global $is_IE;
    141138    $class = 'media-modal wp-core-ui';
    142     if ( $is_IE && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false )
     139    if ( wp_is_IE() && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false ) {
    143140        $class .= ' ie7';
     141    }
    144142    ?>
    145143    <!--[if lte IE 8]>
Note: See TracChangeset for help on using the changeset viewer.