fix(widgets): disable block widget editor to restore classic widgets screen

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-10-30 14:06:49 +08:00
1 parent a579a5b00a
commit 7650c3537a
1 file changed
+4
+4
View File
@@ -16,6 +16,10 @@ final class Runtime {
}
self::$registered = true;
// Reference theme manages widgets on the classic screen; the block widget editor bypasses every schema form.
add_filter('gutenberg_use_widgets_block_editor', '__return_false');
add_filter('use_widgets_block_editor', '__return_false');
add_action('widgets_init', [self::class, 'unregister_core_widgets'], 1);
add_action('widgets_init', [WidgetAreas::class, 'register'], 5);
add_action('widgets_init', [self::class, 'register_widgets'], 10);