WordPress.org

Make WordPress Core

Changeset 38946


Ignore:
Timestamp:
10/26/2016 06:15:54 AM (3 years ago)
Author:
azaozz
Message:

TinyMCE: revert removing the numbers (2-6) after the headings in the drop-down. Seems it causes more confusion.

See #27159.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r38939 r38946  
    840840
    841841            'Headings' => _x( 'Headings', 'TinyMCE' ),
    842             'Heading' => _x( 'Heading', 'TinyMCE' ),
    843842            'Heading 1' => array( __( 'Heading 1' ), 'access1' ),
    844843            'Heading 2' => array( __( 'Heading 2' ), 'access2' ),
  • trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

    r38939 r38946  
    579579                        if ( item.text && labels.hasOwnProperty( item.text ) ) {
    580580                            item.shortcut = '(' + labels[ item.text ] + ')';
    581 
    582                             // Drop the numbers after the labels for headings.
    583                             // TinyMCE makes previews for the h1-h6. It uses the same styles that are applied in the editor body.
    584                             if ( item.text.indexOf( 'Heading' ) !== -1 ) {
    585                                 item.text = 'Heading';
    586                             }
    587581                        }
    588582                    } );
Note: See TracChangeset for help on using the changeset viewer.