Ticket #17144: 17144.can_richedit.patch
File 17144.can_richedit.patch, 1.1 KB (added by , 12 years ago) |
---|
-
wp-includes/general-template.php
1739 1739 !$is_iphone && // this includes all Safari mobile browsers 1740 1740 ( ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 420 ) || 1741 1741 !preg_match( '!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT'] ) ) 1742 && 'comment.php' != $pagenow) {1742 ) { 1743 1743 $wp_rich_edit = true; 1744 1744 } else { 1745 1745 $wp_rich_edit = false; -
wp-includes/class-wp-editor.php
82 82 if ( !empty($set['editor_css']) ) 83 83 echo $set['editor_css'] . "\n"; 84 84 85 if ( $this->can_richedit|| $set['media_buttons'] ) {85 if ( ( ! empty( $buttons) && $this->can_richedit ) || $set['media_buttons'] ) { 86 86 echo '<div id="wp-' . $editor_id . '-editor-tools" class="wp-editor-tools">'; 87 87 echo $buttons; 88 88