WordPress.org

Make WordPress Core

Ticket #20012: 20012.user_can_richedit.diff

File 20012.user_can_richedit.diff, 508 bytes (added by georgestephanis, 4 years ago)

Patch version with conditional moved to user_can_richedit

  • wp-includes/general-template.php

     
    17591759                                $wp_rich_edit = true; 
    17601760                        } 
    17611761                } 
     1762 
     1763                // Kindle Fire / Amazon Silk - doesn't support `contentEditable` 
     1764                if( false !== strpos( $_SERVER['HTTP_USER_AGENT'], '; Silk/' ) ) 
     1765                        $wp_rich_edit = false; 
     1766 
    17621767        } 
    17631768 
    17641769        return apply_filters('user_can_richedit', $wp_rich_edit);