<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[59696] trunk/src: Editor: Change the `Text` editor label to `Code`.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/59696">59696</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/59696","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>joedolson</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2025-01-23 23:52:04 +0000 (Thu, 23 Jan 2025)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Editor: Change the `Text` editor label to `Code`.

Rename the 'Text' tab of the classic editor to 'Code', mimicking the labels used in the block editor: "Visual editor" and "Code editor".
 
Update code comment and Help documentation to reference the editor using the new label.

Props lukecavanagh, ctienshi, travel_girl, audrasjb, sabernhardt, joedolson, rseigel, mark-k, sergeybiryukov, presskopp, giuriani, afercia, knutsp, audrasjb, sukhendu2002.
Fixes <a href="https://core.trac.wordpress.org/ticket/38061">#38061</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcjs_enqueuesliblinkjs">trunk/src/js/_enqueues/lib/link.js</a></li>
<li><a href="#trunksrcjs_enqueueswpautosavejs">trunk/src/js/_enqueues/wp/autosave.js</a></li>
<li><a href="#trunksrcjs_enqueueswpeditorbasejs">trunk/src/js/_enqueues/wp/editor/base.js</a></li>
<li><a href="#trunksrcwpadmineditformadvancedphp">trunk/src/wp-admin/edit-form-advanced.php</a></li>
<li><a href="#trunksrcwpincludesclasswpeditorphp">trunk/src/wp-includes/class-wp-editor.php</a></li>
<li><a href="#trunksrcwpincludesgeneraltemplatephp">trunk/src/wp-includes/general-template.php</a></li>
<li><a href="#trunksrcwpincludeswidgetsclasswpwidgettextphp">trunk/src/wp-includes/widgets/class-wp-widget-text.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcjs_enqueuesliblinkjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/link.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/link.js        2025-01-23 22:47:13 UTC (rev 59695)
+++ trunk/src/js/_enqueues/lib/link.js  2025-01-23 23:52:04 UTC (rev 59696)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -162,7 +162,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( wpLink.isMCE() ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                wpLink.mceRefresh( url, text );
</span><span class="cx" style="display: block; padding: 0 10px">                        } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                // For the Text editor the "Link text" field is always shown.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         // For the Code editor the "Link text" field is always shown.
</ins><span class="cx" style="display: block; padding: 0 10px">                                 if ( ! inputs.wrap.hasClass( 'has-text-field' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        inputs.wrap.addClass( 'has-text-field' );
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpautosavejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/wp/autosave.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/autosave.js     2025-01-23 22:47:13 UTC (rev 59695)
+++ trunk/src/js/_enqueues/wp/autosave.js       2025-01-23 23:52:04 UTC (rev 59696)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -559,7 +559,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                });
</span><span class="cx" style="display: block; padding: 0 10px">                                        } else {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                // Make sure the Text editor is selected.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         // Make sure the Code editor is selected.
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 $( '#content-html' ).trigger( 'click' );
</span><span class="cx" style="display: block; padding: 0 10px">                                                $( '#content' ).trigger( 'focus' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpeditorbasejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/wp/editor/base.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/editor/base.js  2025-01-23 22:47:13 UTC (rev 59695)
+++ trunk/src/js/_enqueues/wp/editor/base.js    2025-01-23 23:52:04 UTC (rev 59696)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,7 +22,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                $$ = tinymce.$;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                 * Handles onclick events for the Visual/Text tabs.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                          * Handles onclick events for the Visual/Code tabs.
</ins><span class="cx" style="display: block; padding: 0 10px">                                  *
</span><span class="cx" style="display: block; padding: 0 10px">                                 * @since 4.3.0
</span><span class="cx" style="display: block; padding: 0 10px">                                 *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -62,7 +62,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                 * Switches the editor between Visual and Text mode.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+          * Switches the editor between Visual and Code mode.
</ins><span class="cx" style="display: block; padding: 0 10px">                  *
</span><span class="cx" style="display: block; padding: 0 10px">                 * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px">                 *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -838,7 +838,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                // Restore the selection when the editor is initialized. Needed when the Text editor is the default.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         // Restore the selection when the editor is initialized. Needed when the Code editor is the default.
</ins><span class="cx" style="display: block; padding: 0 10px">                 $( document ).on( 'tinymce-editor-init.keep-scroll-position', function( event, editor ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( editor.$( '.mce_SELRES_start' ).length ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                focusHTMLBookmarkInVisualEditor( editor );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1203,7 +1203,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Initialize TinyMCE and/or Quicktags. For use with wp_enqueue_editor() (PHP).
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Intended for use with an existing textarea that will become the Text editor tab.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * Intended for use with an existing textarea that will become the Code editor tab.
</ins><span class="cx" style="display: block; padding: 0 10px">          * The editor width will be the width of the textarea container, height will be adjustable.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * Settings for both TinyMCE and Quicktags can be passed on initialization, and are "filtered"
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1246,7 +1246,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        };
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                // Add wrap and the Visual|Text tabs.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         // Add wrap and the Visual|Code tabs.
</ins><span class="cx" style="display: block; padding: 0 10px">                 if ( settings.tinymce && settings.quicktags ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        var $textarea = $( '#' + id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1293,7 +1293,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                .append( $button.attr({
</span><span class="cx" style="display: block; padding: 0 10px">                                                        id: id + '-html',
</span><span class="cx" style="display: block; padding: 0 10px">                                                        'class': 'wp-switch-editor switch-html'
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                }).text( window.tinymce.translate( 'Text' ) ) )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         }).text( window.tinymce.translate( 'Code' ) ) )
</ins><span class="cx" style="display: block; padding: 0 10px">                                         ).append( $editorContainer )
</span><span class="cx" style="display: block; padding: 0 10px">                        );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunksrcwpadmineditformadvancedphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/edit-form-advanced.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/edit-form-advanced.php 2025-01-23 22:47:13 UTC (rev 59695)
+++ trunk/src/wp-admin/edit-form-advanced.php   2025-01-23 23:52:04 UTC (rev 59696)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -283,9 +283,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">        );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $title_and_editor  = '<p>' . __( '<strong>Title</strong> &mdash; Enter a title for your post. After you enter a title, you&#8217;ll see the permalink below, which you can edit.' ) . '</p>';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $title_and_editor .= '<p>' . __( '<strong>Post editor</strong> &mdash; Enter the text for your post. There are two modes of editing: Visual and Text. Choose the mode by clicking on the appropriate tab.' ) . '</p>';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $title_and_editor .= '<p>' . __( '<strong>Post editor</strong> &mdash; Enter the text for your post. There are two modes of editing: Visual and Code. Choose the mode by clicking on the appropriate tab.' ) . '</p>';
</ins><span class="cx" style="display: block; padding: 0 10px">         $title_and_editor .= '<p>' . __( 'Visual mode gives you an editor that is similar to a word processor. Click the Toolbar Toggle button to get a second row of controls.' ) . '</p>';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $title_and_editor .= '<p>' . __( 'The Text mode allows you to enter HTML along with your post text. Note that &lt;p&gt; and &lt;br&gt; tags are converted to line breaks when switching to the Text editor to make it less cluttered. When you type, a single line break can be used instead of typing &lt;br&gt;, and two line breaks instead of paragraph tags. The line breaks are converted back to tags automatically.' ) . '</p>';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $title_and_editor .= '<p>' . __( 'The Code mode allows you to enter HTML along with your post text. Note that &lt;p&gt; and &lt;br&gt; tags are converted to line breaks when switching to the Code editor to make it less cluttered. When you type, a single line break can be used instead of typing &lt;br&gt;, and two line breaks instead of paragraph tags. The line breaks are converted back to tags automatically.' ) . '</p>';
</ins><span class="cx" style="display: block; padding: 0 10px">         $title_and_editor .= '<p>' . __( 'You can insert media files by clicking the button above the post editor and following the directions. You can align or edit images using the inline formatting toolbar available in Visual mode.' ) . '</p>';
</span><span class="cx" style="display: block; padding: 0 10px">        $title_and_editor .= '<p>' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Screen Options.' ) . '</p>';
</span><span class="cx" style="display: block; padding: 0 10px">        $title_and_editor .= '<p>' . sprintf(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -314,7 +314,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        );
</span><span class="cx" style="display: block; padding: 0 10px"> } elseif ( 'page' === $post_type ) {
</span><span class="cx" style="display: block; padding: 0 10px">        $about_pages = '<p>' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.' ) . '</p>' .
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                '<p>' . __( 'Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Text modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box.' ) . '</p>';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         '<p>' . __( 'Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Code modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box.' ) . '</p>';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        get_current_screen()->add_help_tab(
</span><span class="cx" style="display: block; padding: 0 10px">                array(
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpeditorphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-editor.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-editor.php 2025-01-23 22:47:13 UTC (rev 59695)
+++ trunk/src/wp-includes/class-wp-editor.php   2025-01-23 23:52:04 UTC (rev 59696)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -54,7 +54,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *     @type string|int $tabindex          Tabindex value to use. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px">         *     @type string     $tabfocus_elements The previous and next element ID to move the focus to
</span><span class="cx" style="display: block; padding: 0 10px">         *                                         when pressing the Tab key in TinyMCE. Default ':prev,:next'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         *     @type string     $editor_css        Intended for extra styles for both Visual and Text editors.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  *     @type string     $editor_css        Intended for extra styles for both Visual and Code editors.
</ins><span class="cx" style="display: block; padding: 0 10px">          *                                         Should include `<style>` tags, and can use "scoped". Default empty.
</span><span class="cx" style="display: block; padding: 0 10px">         *     @type string     $editor_class      Extra classes to add to the editor textarea element. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px">         *     @type bool       $teeny             Whether to output the minimal editor config. Examples include
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -184,7 +184,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( self::$this_quicktags ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                $default_editor = $set['default_editor'] ? $set['default_editor'] : wp_default_editor();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                // 'html' is used for the "Text" editor tab.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         // 'html' is used for the "Code" editor tab.
</ins><span class="cx" style="display: block; padding: 0 10px">                                 if ( 'html' !== $default_editor ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        $default_editor = 'tinymce';
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -194,7 +194,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                $buttons .= '<button type="button" id="' . $editor_id_attr . '-tmce"' . $html_active . ' class="wp-switch-editor switch-tmce"' .
</span><span class="cx" style="display: block; padding: 0 10px">                                        ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Visual', 'Name for the Visual editor tab' ) . "</button>\n";
</span><span class="cx" style="display: block; padding: 0 10px">                                $buttons .= '<button type="button" id="' . $editor_id_attr . '-html"' . $tmce_active . ' class="wp-switch-editor switch-html"' .
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ) . "</button>\n";
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Code', 'Name for the Code editor tab (formerly Text)' ) . "</button>\n";
</ins><span class="cx" style="display: block; padding: 0 10px">                         } else {
</span><span class="cx" style="display: block; padding: 0 10px">                                $default_editor = 'tinymce';
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -272,7 +272,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'id="' . $editor_id_attr . '">%s</textarea></div>'
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                // Prepare the content for the Visual or Text editor, only when TinyMCE is used (back-compat).
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         // Prepare the content for the Visual or Code editor, only when TinyMCE is used (back-compat).
</ins><span class="cx" style="display: block; padding: 0 10px">                 if ( self::$this_tinymce ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        add_filter( 'the_editor_content', 'format_for_editor', 10, 2 );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -627,7 +627,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                 * Filters the list of teenyMCE buttons (Text tab).
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                          * Filters the list of teenyMCE buttons (Code tab).
</ins><span class="cx" style="display: block; padding: 0 10px">                                  *
</span><span class="cx" style="display: block; padding: 0 10px">                                 * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px">                                 * @since 3.3.0 The `$editor_id` parameter was added.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1396,7 +1396,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'Apply'                                => __( 'Apply' ),        // Tooltip for the 'apply' button in the inline link dialog.
</span><span class="cx" style="display: block; padding: 0 10px">                                'Link options'                         => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog.
</span><span class="cx" style="display: block; padding: 0 10px">                                'Visual'                               => _x( 'Visual', 'Name for the Visual editor tab' ),             // Editor switch tab label.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'Text'                                 => _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ), // Editor switch tab label.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'Code'                                 => _x( 'Code', 'Name for the Code editor tab (formerly Text)' ), // Editor switch tab label.
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'Add Media'                            => array( __( 'Add Media' ), 'accessM' ), // Tooltip for the 'Add Media' button in the block editor Classic block.
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                // Shortcuts help modal.
</span></span></pre></div>
<a id="trunksrcwpincludesgeneraltemplatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/general-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/general-template.php        2025-01-23 22:47:13 UTC (rev 59695)
+++ trunk/src/wp-includes/general-template.php  2025-01-23 23:52:04 UTC (rev 59696)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3792,7 +3792,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * Finds out which editor should be displayed by default.
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * Works out which of the editors to display as the current editor for a
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * user. The 'html' setting is for the "Text" editor tab.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * user. The 'html' setting is for the "Code" editor tab.
</ins><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span></span></pre></div>
<a id="trunksrcwpincludeswidgetsclasswpwidgettextphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/widgets/class-wp-widget-text.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/widgets/class-wp-widget-text.php    2025-01-23 22:47:13 UTC (rev 59695)
+++ trunk/src/wp-includes/widgets/class-wp-widget-text.php      2025-01-23 23:52:04 UTC (rev 59696)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -557,7 +557,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                <div hidden class="wp-pointer paste-html-pointer wp-pointer-top">
</span><span class="cx" style="display: block; padding: 0 10px">                                        <div class="wp-pointer-content">
</span><span class="cx" style="display: block; padding: 0 10px">                                                <h3><?php _e( 'Did you just paste HTML?' ); ?></h3>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                <p><?php _e( 'Hey there, looks like you just pasted HTML into the &#8220;Visual&#8221; tab of the Text widget. You may want to paste your code into the &#8220;Text&#8221; tab instead. Alternately, try out the new &#8220;Custom HTML&#8221; widget!' ); ?></p>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         <p><?php _e( 'Hey there, looks like you just pasted HTML into the &#8220;Visual&#8221; tab of the Text widget. You may want to paste your code into the &#8220;Code&#8221; tab instead. Alternately, try out the new &#8220;Custom HTML&#8221; widget!' ); ?></p>
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 <div class="wp-pointer-buttons">
</span><span class="cx" style="display: block; padding: 0 10px">                                                        <a class="close" href="#"><?php _e( 'Dismiss' ); ?></a>
</span><span class="cx" style="display: block; padding: 0 10px">                                                </div>
</span></span></pre>
</div>
</div>

</body>
</html>