WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/31/2016 03:21:04 PM (4 years ago)
Author:
wonderboymusic
Message:

General: revert [38467], wp_is_IE() should not exist.

See #37699.

File:
1 edited

Legend:

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

    r38467 r38468  
    29052905 * @global bool $is_safari
    29062906 * @global bool $is_chrome
     2907 * @global bool $is_IE
    29072908 *
    29082909 * @return bool
    29092910 */
    29102911function user_can_richedit() {
    2911     global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_edge;
     2912    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    29122913
    29132914    if ( !isset($wp_rich_edit) ) {
     
    29172918            if ( $is_safari ) {
    29182919                $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 );
    2919             } elseif ( $is_gecko || $is_chrome || wp_is_IE() || $is_edge || ( $is_opera && !wp_is_mobile() ) ) {
     2920            } elseif ( $is_gecko || $is_chrome || $is_IE || $is_edge || ( $is_opera && !wp_is_mobile() ) ) {
    29202921                $wp_rich_edit = true;
    29212922            }
Note: See TracChangeset for help on using the changeset viewer.