WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/04/2012 04:04:54 PM (6 years ago)
Author:
ryan
Message:

Update Fire browser detection. Handle silke mode. Props azaozz, nacin, georgestephanis. fixes #20014

File:
1 edited

Legend:

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

    r20419 r20990  
    17541754        if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users
    17551755            if ( $is_safari ) {
    1756                 if ( wp_is_mobile() || 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
    1759                     $wp_rich_edit = true;
     1756                $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 );
    17601757            } elseif ( $is_gecko || $is_opera || $is_chrome || $is_IE ) {
    17611758                $wp_rich_edit = true;
Note: See TracChangeset for help on using the changeset viewer.