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

WordPress Trac noreply at wordpress.org
Wed Mar 27 20:59:01 UTC 2024


#18546: Add index.php to wp-includes and wp-admin/includes
------------------------------------+-----------------------------
 Reporter:  SergeyBiryukov          |       Owner:  SergeyBiryukov
     Type:  enhancement             |      Status:  accepted
 Priority:  normal                  |   Milestone:  Future Release
Component:  Bootstrap/Load          |     Version:  3.2
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+-----------------------------

Comment (by Website Rob):

 Since my ticket (#60848) was marked as a duplicate and has revitalized
 this ticket, I will add my comments here.

 The Internet was built on serving **.htm** files and almost every server
 OS in the world will do that. WordPress should be concerned with best
 practices of how WordPress itself works within a website, not how a
 particular server is setup. In my world, having an **index.htm** file in
 every default WordPress directory would be considered as best practice.
 There are many good reasons to have an index.htm file in every directory
 and it does no harm.

 In this regard and in a perfect world, WordPress core "could" concern
 itself with whether or not every Theme, Addon, whatever, has their own
 index.htm file, but I think not. As we do not yet live in a perfect world,
 best to focus only on WordPress default directories. As servers are setup
 by default to serve an index file first; regardless of the format, having
 more than one index file (index.htm, index.php) in every directory is not
 a bad thing and does no harm--and it can be blank.

 Please correct me if I'm wrong, but at this point in time and into the far
 future, I cannot see any downside for adding an **index.htm** file into
 every default WordPress directory.

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


More information about the wp-trac mailing list