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-includes/vars.php

    r37518 r38467  
    140140    return $is_mobile;
    141141}
     142
     143/**
     144 * @since 4.7.0
     145 *
     146 * @global bool $is_IE Whether the current user agent is Internet Explorer
     147 *
     148 * @return bool Return the value of the $is_IE global.
     149 */
     150function wp_is_IE() {
     151    global $is_IE;
     152    return $is_IE;
     153}
Note: See TracChangeset for help on using the changeset viewer.