Ticket #27159: 27159.3.diff
File 27159.3.diff, 1.3 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-editor.php
839 839 'Formats' => _x( 'Formats', 'TinyMCE' ), 840 840 841 841 'Headings' => _x( 'Headings', 'TinyMCE' ), 842 'Heading' => _x( 'Heading', 'TinyMCE' ), 842 843 'Heading 1' => array( __( 'Heading 1' ), 'access1' ), 843 844 'Heading 2' => array( __( 'Heading 2' ), 'access2' ), 844 845 'Heading 3' => array( __( 'Heading 3' ), 'access3' ), -
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
578 578 each( listbox.settings.values, function( item ) { 579 579 if ( item.text && labels.hasOwnProperty( item.text ) ) { 580 580 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 } 581 587 } 582 588 } ); 583 589 }