[wp-trac] [WordPress Trac] #63887: Add sourceURL to inline scripts and styles

WordPress Trac noreply at wordpress.org
Tue Oct 7 01:23:19 UTC 2025


#63887: Add sourceURL to inline scripts and styles
--------------------------------------+------------------------------
 Reporter:  jonsurrell                |       Owner:  jonsurrell
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.9
Component:  Script Loader             |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  javascript, css
--------------------------------------+------------------------------

Comment (by westonruter):

 In [changeset:"60909" 60909]:
 {{{
 #!CommitTicketReference repository="" revision="60909"
 Script Loader: Add `sourceURL` comments to inline `SCRIPT` tags manually
 constructed in `wp-includes`.

 This applies to tags constructed without
 `wp_get_inline_script_tag()`/`wp_print_inline_script_tag()`.

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

 Props westonruter, jonsurrell.
 See #63887.
 }}}

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


More information about the wp-trac mailing list