Opened 11 years ago
Closed 11 years ago
#31070 closed defect (bug) (invalid)
Case-sensitive parent / child theme titles (linux)
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.1 |
| Component: | Themes | Keywords: | |
| Focuses: | Cc: |
Description
After several hours of debugging a white screen, after moving a wordpress multisite that worked on my MAMP, to a LAMP install online, one simple change triggered the fix...
Child themes specify a 'template' in style.css (e.g. 'canvas') - This appears to be case-sensitive, as it only worked on LAMP when lower case, even though the parent theme title is 'Canvas' - i.e. capitalised.
Surely there should be a strtolower() check in the core to prevent this issue arising? Or otherwise, some sort of error / alert?
Change History (2)
#2
@
11 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
In style.css, Template corresponds to the directory name of the parent theme. Not the name of the theme itself. Not in all circumstances does the theme name, or a lower case'd version of it, actually be the directory name. Default themes are a good example for that.
As you said in the ticket description, there should be a more helpful response than a WSOD, in case a theme can't be found. Let's find one in #21931.
Related: #21931