[wp-trac] [WordPress Trac] #64369: Disable sourceURL Comments
WordPress Trac
noreply at wordpress.org
Mon Feb 23 17:47:10 UTC 2026
#64369: Disable sourceURL Comments
-------------------------------+-------------------------------------------
Reporter: anton7249 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.0
Component: Script Loader | Version: 6.9
Severity: normal | Resolution:
Keywords: 2nd-opinion has- | Focuses: javascript, css, performance
patch |
-------------------------------+-------------------------------------------
Comment (by jonsurrell):
@jonoaldersonwp I'd like to confirm that I understand [#comment:8 the
issue you're describing].
- Crawlers discover the `sourceURL` comments and try to crawl the
referenced URLs.
- This means "URLs" like `wp-img-auto-sizes-contain-inline-css` are
discovered. This is treated as a relative URL and a fetch is attempted.
- This likely results in a 404.
- The 404 appears in GSC (Google Search Console) and creates confusiong.
Is this a good description of the problem? Are there additional issues I
haven't summarized? Will you share some specific URL examples? (of the
form `https://example.com/a-post-slug/wp-img-auto-sizes-contain-inline-
css` to understand the bad paths that are being crawled).
-----
I have a personal website with WordPress 6.9. It includes the `sourceURL`
comments. I have not noticed any issues and do not see problems in GSC
related to the `sourceURL` for the property.
-----
I'm not opposed to adjusting how the `sourceURL` comments are printed, but
they still seem to provide more benefit than harm. WordPress 6.9 has been
out for several months with the `sourceURL` comments. [#comment:8 This is
the only report I'm aware of] that suggests any problems.
It would be helpful if someone with a property on GSC can confirm the
issue since I'm unable to.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64369#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list