[wp-trac] [WordPress Trac] #36779: Move /wp-admin/load-scripts.php and /wp-admin/load-styles.php to /wp-includes

WordPress Trac noreply at wordpress.org
Tue Aug 12 17:21:27 UTC 2025


#36779: Move /wp-admin/load-scripts.php and /wp-admin/load-styles.php to /wp-
includes
---------------------------+---------------------
 Reporter:  SaulNunez      |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:
Component:  Script Loader  |     Version:  4.4.2
 Severity:  normal         |  Resolution:
 Keywords:  close          |     Focuses:
---------------------------+---------------------
Changes (by jonsurrell):

 * keywords:   => close


Comment:

 This is a good question and I don't have an answer. It seems perfectly
 reasonable for these files to exist outside of the `wp-admin` path since
 they're not authenticated, like you suggest.

 It seems they were introduced in [10357] and have been there ever since.

 That said, with the amount of time that these files have been available at
 this location, I don't think they can just be moved. A new file would
 probably have to be created in the other directory, and the existing file
 would likely reference the new file via an `include` or something similar.
 That means that there's probably little benefit to changing where this
 file lives and it doesn't seem worth the effort to me. There's little
 downside to the current path for these files, which makes it hard to
 justify changing the path.

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


More information about the wp-trac mailing list