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/general-template.php

    r38459 r38467  
    29052905 * @global bool $is_safari
    29062906 * @global bool $is_chrome
    2907  * @global bool $is_IE
    29082907 *
    29092908 * @return bool
    29102909 */
    29112910function user_can_richedit() {
    2912     global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
     2911    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_edge;
    29132912
    29142913    if ( !isset($wp_rich_edit) ) {
     
    29182917            if ( $is_safari ) {
    29192918                $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 );
    2920             } elseif ( $is_gecko || $is_chrome || $is_IE || $is_edge || ( $is_opera && !wp_is_mobile() ) ) {
     2919            } elseif ( $is_gecko || $is_chrome || wp_is_IE() || $is_edge || ( $is_opera && !wp_is_mobile() ) ) {
    29212920                $wp_rich_edit = true;
    29222921            }
Note: See TracChangeset for help on using the changeset viewer.