Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#4522 closed defect (bug) (fixed)

Template: default broken

Reported by: sunburntkamel Owned by:
Milestone: 2.2.2 Priority: normal
Severity: normal Version: 2.2.1
Component: Template Keywords: has-patch theme template linebreaks
Focuses: Cc:


in 2.2.1, and all versions of newer than r5630, using template: to create stylesheet based themes is broken (i.e. http://codex.wordpress.org/Theme_Development#Theme_Style_Sheet )

every server configuration i've tried (WAMP, LAMP, PHP 5), others reporting the same problem.

diff that caused the issue:

Attachments (1)

theme.php.diff (339 bytes) - added by dougal 8 years ago.
patch against 2.2.1 wp-includes/theme.php

Download all attachments as: .zip

Change History (4)

#1 @scottwallick
8 years ago

It seems that there were line breaks introduced in themes.php post-r5620 that caused this problem.

Also breaks in my configs as well, but r5630 works fine.

8 years ago

patch against 2.2.1 wp-includes/theme.php

#2 @dougal
8 years ago

  • Cc dougal added
  • Keywords has-patch added

Yup, definitely broken in 2.2.1. There is no handling of the $template variable (which is to say, it remains an array as returned from the preg_match when parsing the template metadata). Patch attached.

#3 @markjaquith
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5770]) Fix stylesheet-based themes. props dougal. fixes #4522

Note: See TracTickets for help on using tickets.