Make WordPress Core

Opened 9 years ago

Last modified 3 years 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, theme-editor
Focuses: administration Cc:


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 (7)

#1 @kawauso
9 years ago

Duplicate: #10429 (without proper detail)

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

#2 @SergeyBiryukov
8 years ago

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

Related: #4131

#4 @nacin
6 years ago

  • Component changed from Administration to Themes
  • Focuses administration added

#5 @obenland
5 years ago

  • Keywords theme-editor added

#6 @SergeyBiryukov
5 years ago

#30663 was marked as a duplicate.

This ticket was mentioned in Slack in #core-customize by melchoyce. View the logs.

3 years ago

Note: See TracTickets for help on using tickets.