Make WordPress Core


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

    r38462 r38467  
    28972897 *
    28982898 * @since 2.6.0
    2899  *
    2900  * @global bool          $is_IE      Whether the browser matches an Internet Explorer user agent.
    29012899 */
    29022900function get_shortcut_link() {
    2903     global $is_IE;
    2904 
    29052901    $link = '';
    29062902
    2907     if ( $is_IE ) {
     2903    if ( wp_is_IE() ) {
    29082904        /*
    29092905         * Return the old/shorter bookmarklet code for MSIE 8 and lower,
Note: See TracChangeset for help on using the changeset viewer.