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

WordPress Trac noreply at wordpress.org
Mon May 4 19:33:38 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 SergeyBiryukov):

 Replying to [comment:19 Otto42]:
 > Question: Should it be index.php, or index.html? Or index.htm? What
 provides the most coverage?

 We already have three `index.php` files in `wp-content` with the `//
 Silence is golden` comment:
 {{{
 wp-content/index.php
 wp-content/plugins/index.php
 wp-content/themes/index.php
 }}}
 Since WordPress itself requires PHP, it seems better to stick to the
 existing pattern of using `index.php` for consistency. It would also open
 a possibility for us to address this point from comment:18 in the future:
 * (and in an ideal world, we'd also have those index files trigger the
 themes' 404 template and return a 404 HTTP status).

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


More information about the wp-trac mailing list