Ticket #19320: 19320-5.patch
File 19320-5.patch, 1.9 KB (added by , 13 years ago) |
---|
-
wp-includes/class-wp-editor.php
38 38 'editor_class' => '', // add extra class(es) to the editor textarea 39 39 'teeny' => false, // output the minimal editor config used in Press This 40 40 'dfw' => false, // replace the default fullscreen with DFW (needs specific DOM elements and css) 41 'tinymce' => null, // load TinyMCE, can be used to pass settings directly to TinyMCE using an array()41 'tinymce' => true, // load TinyMCE, can be used to pass settings directly to TinyMCE using an array() 42 42 'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array() 43 43 ) ); 44 44 45 if ( null === $set['tinymce'] ) 46 self::$this_tinymce = user_can_richedit(); 47 else 48 self::$this_tinymce = (bool) $set['tinymce']; 49 45 self::$this_tinymce = ( $set['tinymce'] && user_can_richedit() ); 50 46 self::$this_quicktags = (bool) $set['quicktags']; 51 47 52 48 if ( self::$this_tinymce ) -
wp-includes/general-template.php
1749 1749 function user_can_richedit() { 1750 1750 global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_iphone, $is_IE; 1751 1751 1752 if ( !isset( 1752 if ( !isset($wp_rich_edit) ) { 1753 1753 $wp_rich_edit = false; 1754 1754 1755 if ( get_user_option( 'rich_editing' ) == 'true' ) {1755 if ( get_user_option( 'rich_editing' ) == 'true' || !is_user_logged_in() ) { // default to 'true' for logged out users 1756 1756 if ( $is_safari ) { 1757 1757 if ( !$is_iphone || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 534 ) ) 1758 1758 $wp_rich_edit = true;