mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +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: http://svn.automattic.com/wordpress/trunk@19289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e39245936f
commit
dc3a8f44fd
@ -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…
Reference in New Issue
Block a user