Make WordPress Core

Ticket #27159: 27159.diff

File 27159.diff, 1.9 KB (added by akibjorklund, 8 years ago)
  • src/wp-includes/class-wp-editor.php

     
    600600                                $mce_buttons = apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id );
    601601                                $mce_buttons_2 = $mce_buttons_3 = $mce_buttons_4 = array();
    602602                        } else {
    603                                 $mce_buttons = array( 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' );
     603                                $mce_buttons = array( 'formatselect', 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'link', 'unlink', 'wp_more', 'spellchecker' );
    604604
    605605                                if ( ! wp_is_mobile() ) {
    606606                                        if ( $set['_content_editor_dfw'] ) {
     
    622622                                 */
    623623                                $mce_buttons = apply_filters( 'mce_buttons', $mce_buttons, $editor_id );
    624624
    625                                 $mce_buttons_2 = array( 'formatselect', 'underline', 'alignjustify', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo' );
     625                                $mce_buttons_2 = array( 'alignleft', 'aligncenter', 'alignright', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo' );
    626626
    627627                                if ( ! wp_is_mobile() ) {
    628628                                        $mce_buttons_2[] = 'wp_help';
     
    690690                                'toolbar3' => implode($mce_buttons_3, ','),
    691691                                'toolbar4' => implode($mce_buttons_4, ','),
    692692                                'tabfocus_elements' => $set['tabfocus_elements'],
    693                                 'body_class' => $body_class
     693                                'body_class' => $body_class,
     694                                'block_formats' => 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre;'
    694695                        );
    695696
    696697                        // Merge with the first part of the init array