Ticket #34431: 34431.patch
| File 34431.patch, 1.0 KB (added by , 10 years ago) |
|---|
-
wp-includes/general-template.php
2518 2518 * @return bool 2519 2519 */ 2520 2520 function user_can_richedit() { 2521 global $wp_rich_edit, $is_ gecko, $is_opera, $is_safari, $is_chrome, $is_IE;2521 global $wp_rich_edit, $is_edge, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE; 2522 2522 2523 2523 if ( !isset($wp_rich_edit) ) { 2524 2524 $wp_rich_edit = false; … … 2526 2526 if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users 2527 2527 if ( $is_safari ) { 2528 2528 $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_edge || $is_gecko || $is_chrome || $is_IE || ( $is_opera && !wp_is_mobile() ) ) { 2530 2530 $wp_rich_edit = true; 2531 2531 } 2532 2532 }