[wp-trac] [WordPress Trac] #64560: Speculative Loading API can expose server path when using a theme directory outside the document root

WordPress Trac noreply at wordpress.org
Thu Jan 29 22:35:03 UTC 2026


#64560: Speculative Loading API can expose server path when using a theme directory
outside the document root
--------------------------+------------------------------
 Reporter:  emrl          |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  6.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+------------------------------

Comment (by westonruter):

 So if you just call `get_stylesheet_directory_uri()` somewhere on the page
 to, for example, construct the URL for a static image asset in the theme,
 does this also break for you?

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


More information about the wp-trac mailing list