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. Built from https://develop.svn.wordpress.org/trunk@60182 git-svn-id: http://core.svn.wordpress.org/trunk@59518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1293,7 +1293,7 @@ window.wp = window.wp || {};
|
||||
.append( $button.attr({
|
||||
id: id + '-html',
|
||||
'class': 'wp-switch-editor switch-html'
|
||||
}).text( window.tinymce.translate( 'Code' ) ) )
|
||||
}).text( window.tinymce.translate( 'Code|tab' ) ) )
|
||||
).append( $editorContainer )
|
||||
);
|
||||
|
||||
|
||||
2
wp-admin/js/editor.min.js
vendored
2
wp-admin/js/editor.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1396,7 +1396,7 @@ final class _WP_Editors {
|
||||
'Apply' => __( 'Apply' ), // Tooltip for the 'apply' button in the inline link dialog.
|
||||
'Link options' => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog.
|
||||
'Visual' => _x( 'Visual', 'Name for the Visual editor tab' ), // Editor switch tab label.
|
||||
'Code' => _x( 'Code', 'Name for the Code editor tab (formerly Text)' ), // Editor switch tab label.
|
||||
'Code|tab' => _x( 'Code', 'Name for the Code editor tab (formerly Text)' ), // Editor switch tab label.
|
||||
'Add Media' => array( __( 'Add Media' ), 'accessM' ), // Tooltip for the 'Add Media' button in the block editor Classic block.
|
||||
|
||||
// Shortcuts help modal.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.9-alpha-60181';
|
||||
$wp_version = '6.9-alpha-60182';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user