Make WordPress Core

Changeset 41831


Ignore:
Timestamp:
10/11/2017 07:13:09 PM (7 years ago)
Author:
melchoyce
Message:

TinyMCE: Remove "Unlink" icon from toolbar

Because "unlink" now appears contextually when editing a link, let's remove it from the toolbar.

Props azaozz, ahortin, swissspidy, afercia.
Fixes #36569.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r41783 r41831  
    566566                 * @param string $editor_id Unique editor identifier, e.g. 'content'.
    567567                 */
    568                 $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 );
     568                $mce_buttons = apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'fullscreen'), $editor_id );
    569569                $mce_buttons_2 = $mce_buttons_3 = $mce_buttons_4 = array();
    570570            } else {
    571                 $mce_buttons = array( 'formatselect', 'bold', 'italic', 'bullist', 'numlist', 'blockquote', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' );
     571                $mce_buttons = array( 'formatselect', 'bold', 'italic', 'bullist', 'numlist', 'blockquote', 'alignleft', 'aligncenter', 'alignright', 'link', 'wp_more', 'spellchecker' );
    572572
    573573                if ( ! wp_is_mobile() ) {
Note: See TracChangeset for help on using the changeset viewer.