Make WordPress Core

Changeset 42551


Ignore:
Timestamp:
01/23/2018 08:17:05 AM (6 years ago)
Author:
SergeyBiryukov
Message:

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

Props ndavison, azaozz.
Merges [42529] to the 4.9 branch.
Fixes #42503.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/general-template.php

    r42532 r42551  
    30303030                $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 );
    30313031            } elseif ( $is_IE ) {
    3032                 $wp_rich_edit = ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE ' ) === false );
     3032                $wp_rich_edit = ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;' ) !== false );
    30333033            } elseif ( $is_gecko || $is_chrome || $is_edge || ( $is_opera && !wp_is_mobile() ) ) {
    30343034                $wp_rich_edit = true;
Note: See TracChangeset for help on using the changeset viewer.