From dda2f6af362d3726ff201588a58693dc4e99e123 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Mon, 24 May 2021 19:43:34 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@50980 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 75f27d8041..32f638240f 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/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 = '
'; } /**