[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 22 14:09:05 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):

 Found something else while going through theme.php:
 {{{
         // Prevent theme mods to current theme being used on theme being
 previewed
         add_filter( 'pre_option_mods_' . get_current_theme(),
 '__return_empty_array' );
 }}}

 We don't take into account pre_option_mods_{stylesheet} here, the newer
 mods storage key. I imagine this plays significantly into Gandalf do I
 don't want to make a change here. Doing get_option('stylesheet') (assuming
 it is not filtered) makes sense; I imagine you will be substituting in
 your own filter.

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


More information about the wp-trac mailing list