Make WordPress Core

Changeset 42529


Ignore:
Timestamp:
01/18/2018 02:42:34 PM (6 years ago)
Author:
azaozz
Message:

Editor: change the test in user_can_richedit() to also detect when IE11 is in compatibility mode.

Props ndavison, azaozz.
Fixes #42503 for trunk.

File:
1 edited

Legend:

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

    r42343 r42529  
    30823082                $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 );
    30833083            } elseif ( $is_IE ) {
    3084                 $wp_rich_edit = ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE ' ) === false );
     3084                $wp_rich_edit = ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;' ) !== false );
    30853085            } elseif ( $is_gecko || $is_chrome || $is_edge || ( $is_opera && ! wp_is_mobile() ) ) {
    30863086                $wp_rich_edit = true;
Note: See TracChangeset for help on using the changeset viewer.