[wp-trac] [WordPress Trac] #9015: New theme for 3.0 -- Twenty Ten
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 14 01:59:29 UTC 2010
#9015: New theme for 3.0 -- Twenty Ten
----------------------------+-----------------------------------------------
Reporter: dd32 | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.0
Component: Themes | Version:
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
Comment(by filosofo):
Replying to [comment:90 sivel]:
> I'd like to see all of the functions in the functions.php wrapped in a
function_exists. Child themes functions.php is included before the
functions.php of the parent theme. Wrapping the functions inside of this
file in a function_exists would give an easy way to override the functions
just as we do with pluggable.php
Better would be to make such functions methods of a theme-specific object,
and then filter the name of the class that gets instantiated. Then a
child theme could extend its parent class as necessary.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9015#comment:91>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list