Make WordPress Core

Ticket #37278: 37278.2.diff

File 37278.2.diff, 1.7 KB (added by azaozz, 7 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( 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'wp_more', 'spellchecker' );
    604604
    605605                                if ( ! wp_is_mobile() ) {
    606606                                        if ( $set['_content_editor_dfw'] ) {
  • src/wp-includes/js/tinymce/plugins/wplink/plugin.js

     
    555555
    556556                editor.addButton( 'wp_link_edit', {
    557557                        tooltip: 'Edit ', // trailing space is needed, used for context
    558                         icon: 'dashicon dashicons-edit',
     558                        icon: 'dashicon dashicons-admin-links',
    559559                        cmd: 'WP_Link'
    560560                } );
    561561
    562562                editor.addButton( 'wp_link_remove', {
    563563                        tooltip: 'Remove',
    564                         icon: 'dashicon dashicons-no',
     564                        icon: 'dashicon dashicons-editor-unlink',
    565565                        cmd: 'wp_unlink'
    566566                } );
    567567