[wp-trac] [WordPress Trac] #53801: Block-based Widgets Screen does action wp_footer after each Widget

WordPress Trac noreply at wordpress.org
Thu Aug 26 13:03:52 UTC 2021


#53801: Block-based Widgets Screen does action wp_footer after each Widget
--------------------------+---------------------
 Reporter:  MadtownLems   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.8.1
Component:  Widgets       |     Version:  5.8
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by eatingrules):

 Ooh, that's a neat trick in the console, @costdev! 😎

 I just tested that on my clients' site that has all the legacy widgets
 with the opt-in popups. **This is a much better solution than trying to
 make Legacy Widgets have a preview!

 In addition to solving the compatibility issues with
 `wp_head`/`wp_footer`, it has the benefit of reinforcing their "Legacy"
 status. It makes the distinction between the new/legacy widgets much more
 clear, which will actually help people understand the difference and see
 the benefit in moving to new block widgets.

 I think this change actually makes for a better editing experience as
 well. It's jarring to click on the widget and have it completely change to
 the form view -- clicking a legacy widget triggers an unexpected
 behavior/state shift. On top of that, the size the form usually changes,
 so things move around on the page, which is disorienting (it's especially
 bad for a widget with a lot of options/form fields).

 It's also worth noting that the popular Genesis Framework has completely
 disabled the new Block Widget Editor (due to compatibility issues, I
 presume), and I know of at least one other theme that has had significant
 issues with the new editor as well.  So this solution may allow them to
 restore the functionality for their users and help further the adoption of
 the new editor.

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


More information about the wp-trac mailing list