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
This commit is contained in:
desrosj 2021-05-24 19:44:57 +00:00
parent c4182fd00f
commit 50c526f82b
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ final class _WP_Editors {
$toolbar_id = 'qt_' . $editor_id_attr . '_toolbar';
}
$quicktags_toolbar = '<div id="' . $toolbar_id . '" class="quicktags-toolbar"></div>';
$quicktags_toolbar = '<div id="' . $toolbar_id . '" class="quicktags-toolbar hide-if-no-js"></div>';
}
/**

View File

@ -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.