Widget Blocks in Gutenberg 8.9 are not disabled for Reader themes #5322
Labels
Bug
Something isn't working
Changelogged
Whether the issue/PR has been added to release notes.
Integration: WP Core
Reader Mode
WS:Core
Work stream for Plugin core
Milestone
Bug Description
In Gutenberg 8.9, the the Widget Blocks feature was enabled by default (WordPress/gutenberg#24843, WordPress/gutenberg#24087). The result is that now when a Reader theme is active, a Widget Blocks section appears even though widgets are supposed to be disabled in Reader mode:
Expected Behaviour
Gutenberg's Widget Blocks functionality should be disabled in Reader themes.
Steps to reproduce
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
$wp_registered_sidebars
global in\AmpProject\AmpWP\ReaderThemeLoader::disable_widgets()
, though this method may get called to early. We may need a newdisable_sidebars()
method that run the latest thatregister_sidebar()
andregister_sidebars()
may be called.QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: