Opened 14 years ago
Closed 14 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.
Note: See
TracTickets for help on using
tickets.
(In [16711]) Make sure get_themes() returns the proper template and stylesheet directory paths. Use the correct variables. fixes #15671.