WordPress.org

Make WordPress Core

Changeset 50980


Ignore:
Timestamp:
05/24/2021 07:43:34 PM (4 months ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r49541 r50980  
    250250            }
    251251
    252             $quicktags_toolbar = '<div id="' . $toolbar_id . '" class="quicktags-toolbar"></div>';
     252            $quicktags_toolbar = '<div id="' . $toolbar_id . '" class="quicktags-toolbar hide-if-no-js"></div>';
    253253        }
    254254
Note: See TracChangeset for help on using the changeset viewer.