WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#8699 closed enhancement (fixed)

Empty index.php for plugins dir

Reported by: scribu Owned by:
Milestone: 2.8 Priority: low
Severity: normal Version: 2.7
Component: General Keywords: has-patch tested
Focuses: Cc:

Description

I suggest that an empty index.php file be also added to /wp-content/plugins/ and even /wp-content/themes/, just like the one in /wp-content/

Either that, or remove the existing file in /wp-content/.

PS: A google search for "index of" wp-content/plugins shows over 1 million hits.

Attachments (1)

plugins_index.patch (254 bytes) - added by mrmist 5 years ago.
plugins index.

Download all attachments as: .zip

Change History (4)

comment:1 mrmist5 years ago

  • Keywords has-patch added

Though note #8260

mrmist5 years ago

plugins index.

comment:2 mrmist5 years ago

  • Keywords tested added

Tested against 10937 on IIS and Apache2 hosts - plugin section functions as normal, plugin editor ok, seems to have no undesirable effects on the menu any more since #6478 was fixed.

Seems fine to go ahead with.

comment:3 ryan5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10940]) Add index.php to plugins and themes dirs to prevent dir listings. fixes #8699

Note: See TracTickets for help on using tickets.