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

WordPress Trac noreply at wordpress.org
Fri Aug 27 11:13:34 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 andraganescu):

 I think, we need to make the best compromise in core between the problems
 at hand. The widget previews are a feature that the block editor finally
 makes possible and it is a fundamental part of the experience enhancement
 it brought: the ability to preview before save, unlike live editing of
 theme content in the classic screen.

 Disabling previews should not be the result of a few special case plugins
 that use the widget system to display some very specific UI that has to be
 rendered fixed.

 I still believe that @costdev 's idea of parsing through `wp_footer`
 output for styles and scripts, is a great balance of removing ''content
 unrelated to the previewed widget, that happens to be output in
 `wp_footer`'', while also keeping the previews functional and styled. It
 is prefferable for the plugins providing the widgets that can't be
 contained in the previews, even after this optimisation (if it works), to
 update their approach, rather than change core to fit this specific

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

More information about the wp-trac mailing list