Opened 16 years ago
Closed 16 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: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [16711]) Make sure get_themes() returns the proper template and stylesheet directory paths. Use the correct variables. fixes #15671.