[wp-trac] [WordPress Trac] #20027: Use get_(template|stylesheet) instead of get_option( '(template|stylesheet)' )
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 17 19:04:28 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 koopersmith):
Replying to [comment:4 nacin]:
> We could even maintain compat by applying the existing 'stylesheet' and
'template' filters on a callback for option_stylesheet and
option_template, respectively.
This crossed my mind as well. If the only difference between the wrapper
and the option is a single filter, that's an invitation for confusion and
an open door for bugs. We should probably unify the two, alias the
filters, and make the wrapper call get_option() and nothing else.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20027#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list