Make WordPress Core

Changeset 35384


Ignore:
Timestamp:
10/24/2015 06:12:10 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Editor: After [33927], make sure user_can_richedit() returns true for Microsoft Edge.

Props usermrpapa.
Fixes #34431.

File:
1 edited

Legend:

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

    r35379 r35384  
    25192519 */
    25202520function user_can_richedit() {
    2521     global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE;
     2521    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    25222522
    25232523    if ( !isset($wp_rich_edit) ) {
     
    25272527            if ( $is_safari ) {
    25282528                $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 );
    2529             } elseif ( $is_gecko || $is_chrome || $is_IE || ( $is_opera && !wp_is_mobile() ) ) {
     2529            } elseif ( $is_gecko || $is_chrome || $is_IE || $is_edge || ( $is_opera && !wp_is_mobile() ) ) {
    25302530                $wp_rich_edit = true;
    25312531            }
Note: See TracChangeset for help on using the changeset viewer.