Make WordPress Core


Ignore:
Timestamp:
01/23/2025 11:52:04 PM (6 months ago)
Author:
joedolson
Message:

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 #38061.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-text.php

    r59120 r59696  
    558558                    <div class="wp-pointer-content">
    559559                        <h3><?php _e( 'Did you just paste HTML?' ); ?></h3>
    560                         <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>
     560                        <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>
    561561                        <div class="wp-pointer-buttons">
    562562                            <a class="close" href="#"><?php _e( 'Dismiss' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.