From 80503c5c0e901426316accac82acbc1631c741bd Mon Sep 17 00:00:00 2001 From: desrosj Date: Sat, 5 Jan 2019 03:40:50 +0000 Subject: [PATCH] =?UTF-8?q?Editor:=20Allow=20the=20=E2=80=9CAdd=20Media?= =?UTF-8?q?=E2=80=9D=20button=20tooltip=20to=20be=20translated=20in=20the?= =?UTF-8?q?=20Classic=20block.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the Classic Editor, the “Add Media” button was outside of the TinyMCE editor. In the Block Editor, the “Add Media” button was moved into the TinyMCE toolbar in the Classic block, but the tooltip was not added to the list of translatable strings. This adds “Add Media” to that list. The corresponding keyboard shortcut is also specified for the “Add Media” button. Props afercia. Fixes #45788. Built from https://develop.svn.wordpress.org/trunk@44398 git-svn-id: http://core.svn.wordpress.org/trunk@44228 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-editor.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 7de08a7327..3dae85302d 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -1284,6 +1284,7 @@ final class _WP_Editors { '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 'Text' => _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ), // Editor switch tab label + 'Add Media' => array( __( 'Add Media' ), 'accessM' ), // Tooltip for the 'Add Media' button in the Gutenberg Classic block // Shortcuts help modal 'Keyboard Shortcuts' => array( __( 'Keyboard Shortcuts' ), 'accessH' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 7976b804ee..9fa203cce3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44397'; +$wp_version = '5.1-alpha-44398'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.