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

WordPress Trac noreply at wordpress.org
Thu Aug 19 00:05:42 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 costdev):

 I've submitted a patch so that the change is ready for code review and
 commit - should the final word be to remove `wp_footer()` from legacy
 widget previews.

 I see that @peterwilsoncc has noted on the
 [https://github.com/WordPress/gutenberg/issues/33580 Github issue] that
 `wp_head()` is also called on each legacy widget preview, which when
 hooked via `add_action( 'wp_head' ...`, also outputs for each legacy
 widget.

 What are your thoughts on removing this as well?

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


More information about the wp-trac mailing list