[wp-trac] [WordPress Trac] #65279: Prevent non css files from being placed in CSS folders and prevent non JS files from being placed in the JS folders

WordPress Trac noreply at wordpress.org
Wed May 20 15:07:49 UTC 2026


#65279: Prevent non css files from being placed in CSS folders and prevent non JS
files from being placed in the JS folders
------------------------------+--------------------
 Reporter:  jorbin            |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  7.1
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+--------------------
 Currently, it's possible to place php files in `/wp-includes/css`, `wp-
 includes/js`, `wp-admin/js`, and `wp-admin/css`.  These folders should
 only ever contain their respective file types and these file types should
 only ever be in these folders. And automated check should be run to
 enforce this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65279>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list