[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 May 20 21:33:58 UTC 2021


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

Comment (by audrasjb):

 Also, you may want to `esc_attr()` the `$type` variable ;)

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


More information about the wp-trac mailing list