[wp-trac] [WordPress Trac] #63887: Add sourceURL to inline scripts and styles
WordPress Trac
noreply at wordpress.org
Mon Sep 8 12:23:22 UTC 2025
#63887: Add sourceURL to inline scripts and styles
--------------------------------------+------------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Script Loader | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: javascript, css
--------------------------------------+------------------------------
Comment (by jonsurrell):
Replying to [comment:37 TobiasBg]:
> The [https://core.trac.wordpress.org/browser/trunk/src/wp-includes
/class-wp-scripts.php?rev=60719#L229 comment] "The line-based sourceURL
comments may a concatenated script and do not make sense when multiple are
joined together." is missing the word "break", no?
Good spot. [https://github.com/WordPress/wordpress-develop/pull/9794 PR
9794 fixes and improves the comment.]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63887#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list