WordPress.org

Make WordPress Core

Changeset 19289


Ignore:
Timestamp:
11/15/11 00:37:50 (2 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/functions.php

    r19242 r19289  
    9090 
    9191    // Load up our theme options page and related code. 
    92     require( dirname( __FILE__ ) . '/inc/theme-options.php' ); 
     92    require( get_template_directory() . '/inc/theme-options.php' ); 
    9393 
    9494    // Grab Twenty Eleven's Ephemera widget. 
    95     require( dirname( __FILE__ ) . '/inc/widgets.php' ); 
     95    require( get_template_directory() . '/inc/widgets.php' ); 
    9696 
    9797    // Add default posts and comments RSS feed links to <head>. 
Note: See TracChangeset for help on using the changeset viewer.