[wp-trac] [WordPress Trac] #20138: What happens to get_current_theme()?
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 29 19:53:11 UTC 2012
#20138: What happens to get_current_theme()?
--------------------------+------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------
Comment (by nacin):
wp_get_theme() is mighty fast. Took 0.20% of processing time after adding
it to the footer of Twenty Eleven as a test. get_current_theme() hitting
get_option('current_theme') was five times faster, but this is a very safe
trade-off for everything else we're getting in return.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20138#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list