WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#15671 closed defect (bug) (fixed)

get_themes() may lie about the template directory

Reported by: nacin Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Themes Keywords:
Focuses: Cc:

Description

If the first file in the template array is actually overridden by the child theme, then get_themes() will have an incorrect value for the Template Dir.

Template and style have dual meanings in get_themes() -- in some cases, it's the directory (parent versus child), in other cases, it's the kind of file (PHP versus CSS).

Cleaning this up further in 3.2. Working on a quick fix for 3.1 though.

Change History (1)

comment:1 nacin3 years ago

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

(In [16711]) Make sure get_themes() returns the proper template and stylesheet directory paths. Use the correct variables. fixes #15671.

Note: See TracTickets for help on using tickets.