[wp-trac] [WordPress Trac] #20027: Use get_(template|stylesheet) instead of get_option( '(template|stylesheet)' )

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 15 21:21:54 UTC 2012


#20027: Use get_(template|stylesheet) instead of get_option(
'(template|stylesheet)' )
------------------------------+------------------
 Reporter:  ocean90           |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.4
Component:  Themes            |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by nacin):

 Replying to [comment:2 westi]:
 > Should we deprecate the options too?

 Can't, as one calls the other.

 I wonder if we should instead have never adopted get_stylesheet() and
 get_template(), and then filters could be placed on option_stylesheet and
 option_template. We could even maintain compat by applying the existing
 'stylesheet' and 'template' filters on a callback for option_stylesheet
 and option_template, respectively.

 It's not like these are theme template functions. The wrappers aren't that
 necessary and they only cause problems when filtering them.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20027#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list