From 50c526f82b918b8fe7e7120f0c98d0b0baa527f6 Mon Sep 17 00:00:00 2001 From: desrosj Date: Mon, 24 May 2021 19:44:57 +0000 Subject: [PATCH] Editor: Hide the quicktags toolbar when JavaScript is disabled. This adds the `hide-if-no-js` class to the quicktags toolbar in the Classic Editor. This prevents an empty space from showing when JavaScript is disabled. Props DeusTron, sabernhardt, Boniu91, poena. Fixes #40570. Built from https://develop.svn.wordpress.org/trunk@50980 git-svn-id: http://core.svn.wordpress.org/trunk@50589 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-editor.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 75f27d8041..32f638240f 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -249,7 +249,7 @@ final class _WP_Editors { $toolbar_id = 'qt_' . $editor_id_attr . '_toolbar'; } - $quicktags_toolbar = '
'; + $quicktags_toolbar = '
'; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 3888297ab6..bbea3a2d58 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50979'; +$wp_version = '5.8-alpha-50980'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.