From 194e7eb034535c0a24cdfd08b716bc5908cd93c3 Mon Sep 17 00:00:00 2001 From: desrosj Date: Sat, 5 Jan 2019 03:51:46 +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. Merges [44398-44399] to the 5.0 branch. Fixes #45788. Built from https://develop.svn.wordpress.org/branches/5.0@44400 git-svn-id: http://core.svn.wordpress.org/branches/5.0@44230 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 a9cbe3f88b..7caf54871a 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -1265,6 +1265,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 Block Editor Classic block // Shortcuts help modal 'Keyboard Shortcuts' => array( __( 'Keyboard Shortcuts' ), 'accessH' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index fc06d87b85..1c8fa73311 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0.3-alpha-44393'; +$wp_version = '5.0.3-alpha-44400'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.