[wp-trac] [WordPress Trac] #53424: remove_theme_support doesn't restore back to classic widgets editor

WordPress Trac noreply at wordpress.org
Thu Jun 17 04:46:43 UTC 2021


#53424: remove_theme_support doesn't restore back to classic widgets editor
--------------------------+-------------------------
 Reporter:  kevin940726   |       Owner:  noisysocks
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  5.8
Component:  Widgets       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-------------------------

Comment (by noisysocks):

 I've opened a PR which should fix the issue: https://github.com/WordPress
 /wordpress-develop/pull/1382

 > This doesn't work for me either. I believe this is a bug in the
 documentation. We need to update the filter to be `add_filter(
 'use_widgets_block_editor', '__return_false' );` instead, which works for
 me.

 [https://developer.wordpress.org/block-editor/how-to-guides/widgets
 /opting-out/ The docs] look right to me. `add_filter(
 'gutenberg_use_widgets_block_editor', '__return_false' );` is correct. I
 think Trac maybe messed up the formatting.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53424#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list