Make WordPress Core

Changeset 21361


Ignore:
Timestamp:
07/30/2012 12:14:43 AM (13 years ago)
Author:
azaozz
Message:

TinyMCE: don't load in Opera Mobile as it doesn't support contentEditable yet, fixes #21416

File:
1 edited

Legend:

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

    r21311 r21361  
    17551755            if ( $is_safari ) {
    17561756                $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 ) {
    17581758                $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;
    17591762            }
    17601763        }
Note: See TracChangeset for help on using the changeset viewer.