Make WordPress Core

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)

#1 @SergeyBiryukov
12 years ago

  • Component GeneralThemes

Related: #21931

#2 @obenland
12 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

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.