Opened 6 years ago
Closed 6 years ago
#4522 closed defect (bug) (fixed)
Template: default broken
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2.2 |
| Component: | Template | Version: | 2.2.1 |
| Severity: | normal | Keywords: | has-patch theme template linebreaks |
| Cc: | scottwallick, dougal |
Description
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:
http://trac.wordpress.org/changeset?old_path=trunk%2Fwp-includes%2Ftheme.php&old=5630&new_path=trunk%2Fwp-includes%2Ftheme.php&new=5747
Attachments (1)
Change History (4)
comment:1
scottwallick
— 6 years ago
comment:2
dougal
— 6 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.
comment:3
markjaquith
— 6 years ago
- Resolution set to fixed
- Status changed from new to closed
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.