Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#3048 closed defect (bug) (fixed)

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

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


Patch forthcoming...

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

#1 @skeltoac
14 years ago

  • Component changed from Administration to Template
  • Owner changed from anonymous to skeltoac

#2 @skeltoac
14 years ago

  • Keywords has-patch tested commit added
  • Owner changed from skeltoac to ryan

#3 @ryan
14 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?

#4 @markjaquith
14 years ago

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.

#5 @ryan
14 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.