[wp-trac] [WordPress Trac] #63269: Duplicate array key `Code` in `_WP_Editors::get_translation()`

WordPress Trac noreply at wordpress.org
Thu Apr 24 22:21:14 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 commit  |     Focuses:
------------------------------+------------------------
Changes (by jorbin):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60182" 60182]:
 {{{
 #!CommitTicketReference repository="" revision="60182"
 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.

 Props joedolson, sabernhardt, justlevine, swissspidy, audrasjb.
 Fixes #63269. See #38061.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63269#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list