WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#17036 new defect (bug)

Theme editor shouldn't override root directory files with same names in child directories

Reported by: kawauso Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.1
Component: Themes Keywords: needs-patch
Focuses: administration Cc:

Description

Steps to reproduce:

  1. Create subdirectory: blogs
  2. Create file in subdirectory: index.php
  3. Try selecting Main Index Template in Theme Editor

Example is taken from BuddyPress' theme structure. get_file_description() doesn't account in any way for the presence of subdirectories since it uses basename().

Change History (4)

comment:1 kawauso3 years ago

Duplicate: #10429 (without proper detail)

Last edited 3 years ago by kawauso (previous) (diff)

comment:2 SergeyBiryukov3 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Related: #4131

comment:4 nacin3 months ago

  • Component changed from Administration to Themes
  • Focuses administration added
Note: See TracTickets for help on using tickets.