[wp-trac] [WordPress Trac] #51124: Can we get an additional parameter in wp_add_inline_script to set the script type?

WordPress Trac noreply at wordpress.org
Thu Sep 30 21:23:21 UTC 2021


#51124: Can we get an additional parameter in wp_add_inline_script to set the
script type?
--------------------------------------+-----------------------
 Reporter:  hcabrera                  |       Owner:  audrasjb
     Type:  feature request           |      Status:  accepted
 Priority:  normal                    |   Milestone:  5.9
Component:  Script Loader             |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------
Changes (by audrasjb):

 * Attachment "51124.3.diff" added.

 Script Loader: Add a `type` parameter to the `wp_add_inline_script` and
 `wp_add_inline_script` functions.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51124>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list