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

WordPress Trac noreply at wordpress.org
Tue Jun 22 21:25:58 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:  has-patch     |     Focuses:
--------------------------+-------------------------

Comment (by hellofromTonya):

 == Testing Results

 Env:
 - OS: macOS Big Sure
 - Browsers: Firefox 89.0.1 and Chrome 91.0.4472.106
 - Script used as a must use file (add to `wp-content/mu-plugins/test.php`
 {{{#!php
 <?php

 add_action( 'after_setup_theme', function() {
     remove_theme_support( 'widgets-block-editor' );
 });
 }}}

 === Before patch

 - Yes, I can reproduce the problem

 === After patch

 - With the above must-use plugin => the classic widgets UI is restored.
 - Commenting out the must-use plugin => restores the widgets block editor

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


More information about the wp-trac mailing list