diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index 5572129fdc..cfcb16fb27 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -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 . add_theme_support( 'automatic-feed-links' );