TinyMCE: don't load in Opera Mobile as it doesn't support contentEditable yet, fixes #21416
git-svn-id: http://core.svn.wordpress.org/trunk@21361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
67ac9ee9a1
commit
4ca78e553d
|
@ -1754,8 +1754,11 @@ function user_can_richedit() {
|
|||
if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users
|
||||
if ( $is_safari ) {
|
||||
$wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 );
|
||||
} elseif ( $is_gecko || $is_opera || $is_chrome || $is_IE ) {
|
||||
} elseif ( $is_gecko || $is_chrome || $is_IE ) {
|
||||
$wp_rich_edit = true;
|
||||
} elseif ( $is_opera ) {
|
||||
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mobi/') === false && strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini/') === false )
|
||||
$wp_rich_edit = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue