fix: gutenberg mode gadget error problem (#502 #521 #538)

pull/568/head
Seaton Jiang 2022-11-27 19:28:05 +08:00
parent 70f6d92b13
commit 4b5f80393e
No known key found for this signature in database
GPG Key ID: B79682F6FE8D30E3
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ add_action('widgets_init', 'widgets_init');
// 关闭默认小工具
function widget_unregister() {
unregister_widget('WP_Widget_Block');
// fix #502 #521
// unregister_widget('WP_Widget_Block');
unregister_widget('WP_Widget_Pages');
unregister_widget('WP_Widget_Meta');
unregister_widget('WP_Widget_Media_Image');