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: https://develop.svn.wordpress.org/trunk@19289 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-11-15 00:37:50 +00:00
parent e624bef124
commit c71fea0654
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' );