[wp-trac] [WordPress Trac] #63269: Duplicate array key `Code` in `_WP_Editors::get_translation()`
WordPress Trac
noreply at wordpress.org
Fri Apr 25 18:26:57 UTC 2025
#63269: Duplicate array key `Code` in `_WP_Editors::get_translation()`
-------------------------------------------------+-------------------------
Reporter: justlevine | Owner: joedolson
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.8.1
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch fixed-major dev-reviewed | Focuses:
commit |
-------------------------------------------------+-------------------------
Changes (by joedolson):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"60187" 60187]:
{{{
#!CommitTicketReference repository="" revision="60187"
Editor: Use different keys in array of translatable strings.
[59696] changed the 'Text' tab of the classic editor to 'Code' but Code
was already used as a key in the array of translatable text. Since arrays
keys need to be unique, this meant that it is possible for the wrong
translation to appear in a locale. Using different keys fixes that.
Reviewed by joedolson.
Merges [60182] to the 6.8 branch.
Props joedolson, sabernhardt, justlevine, swissspidy, audrasjb.
Fixes #63269. See #38061.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63269#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list