From 760d2b37717a02f565349902b58ee06638957686 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 Jul 2017 22:58:41 +0000 Subject: [PATCH] I18N: Use a consistent context for Visual and Text editor tab labels. Props pedromendonca. Fixes #41438. Built from https://develop.svn.wordpress.org/trunk@41152 git-svn-id: http://core.svn.wordpress.org/trunk@40992 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-editor.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 84abf261e7..a61f239788 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -179,7 +179,7 @@ final class _WP_Editors { } $buttons .= '\n"; + ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Visual', 'Name for the Visual editor tab' ) . "\n"; $buttons .= '\n"; } else { @@ -1257,8 +1257,8 @@ final class _WP_Editors { 'Paste URL or type to search' => __( 'Paste URL or type to search' ), // Placeholder for the inline link dialog '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' => __( 'Visual' ), // Editor switch tab label - 'Text' => __( 'Text' ), // Editor switch tab label + 'Visual' => _x( 'Visual', 'Name for the Visual editor tab' ), // Editor switch tab label + 'Text' => _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ), // Editor switch tab label // Shortcuts help modal 'Keyboard Shortcuts' => array( __( 'Keyboard Shortcuts' ), 'accessH' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 1db3b32960..d115eea34c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41151'; +$wp_version = '4.9-alpha-41152'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.