Ticket #21416: 21416.patch
File 21416.patch, 893 bytes (added by , 13 years ago) |
---|
-
wp-includes/general-template.php
1754 1754 if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users 1755 1755 if ( $is_safari ) { 1756 1756 $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 ); 1757 } elseif ( $is_gecko || $is_ opera || $is_chrome || $is_IE ) {1757 } elseif ( $is_gecko || $is_chrome || $is_IE ) { 1758 1758 $wp_rich_edit = true; 1759 } elseif ( $is_opera ) { 1760 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mobi/') === false && strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini/') === false ) 1761 $wp_rich_edit = true; 1759 1762 } 1760 1763 } 1761 1764 }