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.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-11-15 00:37:50 +00:00
parent e39245936f
commit dc3a8f44fd
1 changed files with 2 additions and 2 deletions

View File

@ -89,10 +89,10 @@ function twentyeleven_setup() {
add_editor_style();
// Load up our theme options page and related code.
require( dirname( __FILE__ ) . '/inc/theme-options.php' );
require( get_template_directory() . '/inc/theme-options.php' );
// Grab Twenty Eleven's Ephemera widget.
require( dirname( __FILE__ ) . '/inc/widgets.php' );
require( get_template_directory() . '/inc/widgets.php' );
// Add default posts and comments RSS feed links to <head>.
add_theme_support( 'automatic-feed-links' );