[wp-trac] [WordPress Trac] #18546: Add index.php to wp-includes and wp-admin/includes

WordPress Trac noreply at wordpress.org
Mon May 4 18:01:49 UTC 2020


#18546: Add index.php to wp-includes and wp-admin/includes
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:  (none)
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Bootstrap/Load                       |     Version:  3.2
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-patch needs-        |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by Otto42):

 @AnotherDave Yes, I agree that this needs to be done.

 The reason I asked the question about the extension was because it would
 be useful to find out a variety of host default configurations in order to
 use the one that will most effectively impact the most systems. WordPress
 runs on a wide variety of hosting services, so knowing what the most
 common configurations are for the index order would let us determine which
 would be the best extension to use. If some hosts don't do .htm in there,
 then we shouldn't use that one.

 Hosting configurations are often weird, so knowing edge cases always
 helps. The most likely candidate of simply using index.php is probably
 fine, since if PHP execution isn't enabled then the site doesn't work
 anyway. But using index.html, for example, would prevent directory
 browsing even if PHP was misconfigured on a host.

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


More information about the wp-trac mailing list