[wp-trac] [WordPress Trac] #64500: Scripts: Use HTML API to generate script tags with improved safety

WordPress Trac noreply at wordpress.org
Wed Jan 14 15:00:58 UTC 2026


#64500: Scripts: Use HTML API to generate script tags with improved safety
--------------------------------------+-------------------------
 Reporter:  jonsurrell                |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  7.0
Component:  Script Loader             |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  javascript
--------------------------------------+-------------------------

Comment (by jonsurrell):

 In [changeset:"61482" 61482]:
 {{{
 #!CommitTicketReference repository="" revision="61482"
 Scripts: Add script tag attribute handling tests.

 Add tests that verify the behavior of `wp_get_inline_script_tag()` and
 `wp_get_script_tag()` attribute handling.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10728.

 Props jonsurrell, dmsnell.
 See #64500.
 }}}

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


More information about the wp-trac mailing list