[wp-trac] [WordPress Trac] #18985: twentyeleven_setup should use get_template_directory() instead of __FILE__

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 15 00:37:52 UTC 2011


#18985: twentyeleven_setup should use get_template_directory() instead of __FILE__
---------------------------+------------------------------
 Reporter:  TomAuger       |       Owner:  nacin
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  3.2.1
 Severity:  minor          |  Resolution:  fixed
 Keywords:                 |
---------------------------+------------------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [19289]:
 {{{
 #!CommitTicketReference repository="" revision="19289"
 Use get_template_directory() for include paths in Twenty Eleven, rather
 than FILE magic constant. Won't go stale when twentyeleven_setup() is
 overridden. props TomAuger, fixes #18985.
 }}}

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


More information about the wp-trac mailing list