mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
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:
parent
e624bef124
commit
c71fea0654
@ -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' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user