Ticket #13326: 13326.1.diff
| File 13326.1.diff, 776 bytes (added by simonwheatley, 3 years ago) |
|---|
-
wp-includes/general-template.php
1721 1721 * @return bool 1722 1722 */ 1723 1723 function user_can_richedit() { 1724 global $wp_rich_edit, $pagenow ;1724 global $wp_rich_edit, $pagenow, $is_iphone; 1725 1725 1726 1726 if ( !isset( $wp_rich_edit) ) { 1727 1727 if ( get_user_option( 'rich_editing' ) == 'true' && 1728 !$is_iphone && // this includes all Safari mobile browsers 1728 1729 ( ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 420 ) || 1729 1730 !preg_match( '!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT'] ) ) 1730 1731 && 'comment.php' != $pagenow ) {
