Opened 2 years ago

Closed 2 years ago

#15671 closed defect (bug) (fixed)

get_themes() may lie about the template directory

Reported by: nacin Owned by:
Priority: normal Milestone: 3.1
Component: Themes Version:
Severity: normal Keywords:
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)

  • 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.