Make WordPress Core

Ticket #63269: 63269.diff

File 63269.diff, 1.6 KB (added by sabernhardt, 10 months ago)

restoring 'Text' array key

  • src/js/_enqueues/wp/editor/base.js

     
    12931293                                                .append( $button.attr({
    12941294                                                        id: id + '-html',
    12951295                                                        'class': 'wp-switch-editor switch-html'
    1296                                                 }).text( window.tinymce.translate( 'Code' ) ) )
     1296                                                }).text( window.tinymce.translate( 'Text' ) ) )
    12971297                                        ).append( $editorContainer )
    12981298                        );
    12991299
  • src/wp-includes/class-wp-editor.php

     
    13961396                                'Apply'                                => __( 'Apply' ),        // Tooltip for the 'apply' button in the inline link dialog.
    13971397                                'Link options'                         => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog.
    13981398                                'Visual'                               => _x( 'Visual', 'Name for the Visual editor tab' ),             // Editor switch tab label.
    1399                                 'Code'                                 => _x( 'Code', 'Name for the Code editor tab (formerly Text)' ), // Editor switch tab label.
     1399                                'Text'                                 => _x( 'Code', 'Name for the Code editor tab (formerly Text)' ), // Editor switch tab label.
    14001400                                'Add Media'                            => array( __( 'Add Media' ), 'accessM' ), // Tooltip for the 'Add Media' button in the block editor Classic block.
    14011401
    14021402                                // Shortcuts help modal.