WordPress.org

Make WordPress Core

Ticket #20993: 20993-2.patch

File 20993-2.patch, 1.5 KB (added by azaozz, 6 years ago)
  • wp-admin/js/editor.dev.js

     
    77                this.go(id, mode);
    88        },
    99
    10         go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'
     10        go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'; 'html' is used for the "Text" editor tab (Quicktags)
    1111                id = id || 'content';
    1212                mode = mode || 'toggle';
    1313
  • wp-includes/class-wp-editor.php

     
    7676                if ( self::$this_quicktags && self::$this_tinymce ) {
    7777                        $switch_class = 'html-active';
    7878
     79                        // 'html' and 'switch-html' are used for the "Text" editor tab (Quicktags)
    7980                        if ( 'html' == wp_default_editor() ) {
    8081                                add_filter('the_editor_content', 'wp_htmledit_pre');
    8182                        } else {
  • wp-includes/general-template.php

     
    17671767 * Find out which editor should be displayed by default.
    17681768 *
    17691769 * Works out which of the two editors to display as the current editor for a
    1770  * user.
     1770 * user. The 'html' setting is for the "Text" editor tab (Quicktags).
    17711771 *
    17721772 * @since 2.5.0
    17731773 *