Make WordPress Core


Ignore:
Timestamp:
10/25/2011 04:42:16 AM (12 years ago)
Author:
nacin
Message:

Use get_template_directory() instead of TEMPLATEPATH in Twentys Ten and Eleven. props solarisssmoke, fixes #18071.

File:
1 edited

Legend:

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

    r18385 r19058  
    7979     * to change 'twentyeleven' to the name of your theme in all the template files.
    8080     */
    81     load_theme_textdomain( 'twentyeleven', TEMPLATEPATH . '/languages' );
     81    load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' );
    8282
    8383    $locale = get_locale();
    84     $locale_file = TEMPLATEPATH . "/languages/$locale.php";
     84    $locale_file = get_template_directory() . "/languages/$locale.php";
    8585    if ( is_readable( $locale_file ) )
    8686        require_once( $locale_file );
Note: See TracChangeset for help on using the changeset viewer.