Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#31070 closed defect (bug) (invalid)

Case-sensitive parent / child theme titles (linux)

Reported by: mskinna's profile mskinna 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)

#1 @SergeyBiryukov
10 years ago

  • Component changed from General to Themes

Related: #21931

#2 @obenland
10 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.

Note: See TracTickets for help on using tickets.