Opened 2 years ago

Last modified 11 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:
Priority: normal Milestone: Future Release
Component: Administration Version: 3.1
Severity: normal Keywords: needs-patch
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 (3)

Duplicate: #10429 (without proper detail)

Last edited 2 years ago by kawauso (previous) (diff)
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Related: #4131

Note: See TracTickets for help on using tickets.