Opened 12 years ago
Closed 12 years ago
#31070 closed defect (bug) (invalid)
Case-sensitive parent / child theme titles (linux)
| Reported by: | mskinna | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Themes | Version: | 4.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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
@
12 years ago
- Milestone Awaiting Review
- Resolution → invalid
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #21931