Changeset 59696 for trunk/src/wp-includes/class-wp-editor.php
- Timestamp:
- 01/23/2025 11:52:04 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r59188 r59696 55 55 * @type string $tabfocus_elements The previous and next element ID to move the focus to 56 56 * when pressing the Tab key in TinyMCE. Default ':prev,:next'. 57 * @type string $editor_css Intended for extra styles for both Visual and Texteditors.57 * @type string $editor_css Intended for extra styles for both Visual and Code editors. 58 58 * Should include `<style>` tags, and can use "scoped". Default empty. 59 59 * @type string $editor_class Extra classes to add to the editor textarea element. Default empty. … … 185 185 if ( self::$this_quicktags ) { 186 186 $default_editor = $set['default_editor'] ? $set['default_editor'] : wp_default_editor(); 187 // 'html' is used for the " Text" editor tab.187 // 'html' is used for the "Code" editor tab. 188 188 if ( 'html' !== $default_editor ) { 189 189 $default_editor = 'tinymce'; … … 195 195 ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Visual', 'Name for the Visual editor tab' ) . "</button>\n"; 196 196 $buttons .= '<button type="button" id="' . $editor_id_attr . '-html"' . $tmce_active . ' class="wp-switch-editor switch-html"' . 197 ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( ' Text', 'Name for the Text editor tab (formerly HTML)' ) . "</button>\n";197 ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Code', 'Name for the Code editor tab (formerly Text)' ) . "</button>\n"; 198 198 } else { 199 199 $default_editor = 'tinymce'; … … 273 273 ); 274 274 275 // Prepare the content for the Visual or Texteditor, only when TinyMCE is used (back-compat).275 // Prepare the content for the Visual or Code editor, only when TinyMCE is used (back-compat). 276 276 if ( self::$this_tinymce ) { 277 277 add_filter( 'the_editor_content', 'format_for_editor', 10, 2 ); … … 628 628 629 629 /** 630 * Filters the list of teenyMCE buttons ( Texttab).630 * Filters the list of teenyMCE buttons (Code tab). 631 631 * 632 632 * @since 2.7.0 … … 1397 1397 'Link options' => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog. 1398 1398 'Visual' => _x( 'Visual', 'Name for the Visual editor tab' ), // Editor switch tab label. 1399 ' Text' => _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ), // Editor switch tab label.1399 'Code' => _x( 'Code', 'Name for the Code editor tab (formerly Text)' ), // Editor switch tab label. 1400 1400 'Add Media' => array( __( 'Add Media' ), 'accessM' ), // Tooltip for the 'Add Media' button in the block editor Classic block. 1401 1401
Note: See TracChangeset
for help on using the changeset viewer.