[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 02:54:25 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 agree that both options risk some bc breaks, but getting all ideas out
 on the table is exactly what we need!

 A thought regarding the styling or Javascript needed by legacy widgets. We
 could get the enqueued styles and scripts for the legacy widget, and
 output them to the legacy widget preview iframe, thereby skipping over any
 other output. We should be able to get those specific scripts/styles from
 the queue, as that's the key function that `wp_head()` and `wp_footer()`
 are carrying out in this scenario?

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


More information about the wp-trac mailing list