WordPress.org

Make WordPress Core

Changeset 19936


Ignore:
Timestamp:
02/17/12 00:21:00 (3 years ago)
Author:
nacin
Message:

Don't try to load the visual editor for Amazon's Silk browser (Kindle Fire), as it doesn't work. Add in a sunrise clause for WebKit build 534. see #20012.

File:
1 edited

Legend:

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

    r19851 r19936  
    17521752        $wp_rich_edit = false; 
    17531753 
    1754         if ( get_user_option( 'rich_editing' ) == 'true' || !is_user_logged_in() ) { // default to 'true' for logged out users 
     1754        if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users 
    17551755            if ( $is_safari ) { 
    1756                 if ( !$is_iphone || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 534 ) ) 
     1756                if ( $is_iphone || false !== strpos( $_SERVER['HTTP_USER_AGENT'], '; Silk/' ) ) 
     1757                    $wp_rich_edit = ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 ); 
     1758                else 
    17571759                    $wp_rich_edit = true; 
    17581760            } elseif ( $is_gecko || $is_opera || $is_chrome || $is_IE ) { 
Note: See TracChangeset for help on using the changeset viewer.