[wp-trac] [WordPress Trac] #63269: Duplicate array key `Code` in `_WP_Editors::get_translation()`
WordPress Trac
noreply at wordpress.org
Sat Apr 12 17:45:46 UTC 2025
#63269: Duplicate array key `Code` in `_WP_Editors::get_translation()`
--------------------------+------------------------
Reporter: justlevine | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.8
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------
Changes (by sabernhardt):
* keywords: => needs-patch
* component: General => Editor
Comment:
The simplest fix //might// be to restore 'Text' as the array key (but
leaving the translation).
-
[https://core.trac.wordpress.org/browser/trunk/src/js/_enqueues/wp/editor/base.js?rev=59696&marks=1296#L1293
base.js] : `text( window.tinymce.translate( 'Text' ) )`
- [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-
editor.php?rev=59696&marks=1399#L1399 class-wp-editor.php] : `'Text' =>
_x( 'Code', 'Name for the Code editor tab (formerly Text)' ),`
One way to test the script is with a Text widget (using the Classic
Widgets plugin).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63269#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list