Make WordPress Core

Opened 12 years ago

Closed 12 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:


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 12 years ago.
plugins index.

Download all attachments as: .zip

Change History (4)

#1 @mrmist
12 years ago

  • Keywords has-patch added

Though note #8260

12 years ago

plugins index.

#2 @mrmist
12 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.

#3 @ryan
12 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.