[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 29 21:54:03 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 needs-refresh  |
--------------------------------------------+------------------
Changes (by nacin):

 * keywords:  has-patch commit => has-patch commit needs-refresh


Comment:

 Let's keep get_option() separate from get_stylesheet() and get_template(),
 and go with the original patch proposed.

 I say this because sometimes you might want the raw option. For example,
 we should not change the code in wp_update_themes() (wp-
 includes/update.php). This patch won't apply cleanly after #20103. Refresh
 and commit.

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


More information about the wp-trac mailing list