[wp-trac] [WordPress Trac] #54018: Allow scripts registered via block.json to be enqueued in the footer

WordPress Trac noreply at wordpress.org
Sun Aug 29 03:48:25 UTC 2021


#54018: Allow scripts registered via block.json to be enqueued in the footer
-------------------------+------------------------------
 Reporter:  jeremyfelt   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by donmhico):

 Hello @jeremyfelt,

 I've attached a PR allows which what you asked by adding support to
 `enqueueScriptFooter` and `enqueueEditorFooter` fields in `$metadata`.
 I've thought to add the support for the editor script as well. You can see
 an example usage in the PR.

 Let me know your thoughts.

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


More information about the wp-trac mailing list