Opened 7 years ago

Closed 7 years ago

#3048 closed defect (bug) (fixed)

stylesheet-only themes can't have a functions.php

Reported by: skeltoac Owned by: ryan
Priority: normal Milestone: 2.1
Component: Template Version: 2.0.4
Severity: normal Keywords: has-patch tested commit
Cc:

Description

Patch forthcoming...

Attachments (1)

load-both-functions.diff (877 bytes) - added by skeltoac 7 years ago.

Download all attachments as: .zip

Change History (6)

  • Component changed from Administration to Template
  • Owner changed from anonymous to skeltoac
  • Keywords has-patch tested commit added
  • Owner changed from skeltoac to ryan

comment:3   ryan7 years ago

Well, it's kinda like the other templates and we don't allow them to be overridden. Do we want to allow child themes to selectively override parent templates?

functions.php isn't really a template, but rather a place to put theme-specific filters in there. Sometimes you can only do so much with CSS, e.g. if you want to do something like change the formatting for the_date() or the_time().

I'd +1 this, but -1 allowing actual parent templates to be overwritten.

comment:5   ryan7 years ago

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

(In [4131]) Allow stylesheet only themes to provide functions.php. Props skeltoac. fixes #3048

Note: See TracTickets for help on using tickets.