Make WordPress Core

Changeset 19058


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

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

Location:
trunk/wp-content/themes
Files:
2 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 );
  • trunk/wp-content/themes/twentyten/functions.php

    r17478 r19058  
    8989    // Make theme available for translation
    9090    // Translations can be filed in the /languages/ directory
    91     load_theme_textdomain( 'twentyten', TEMPLATEPATH . '/languages' );
     91    load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' );
    9292
    9393    $locale = get_locale();
    94     $locale_file = TEMPLATEPATH . "/languages/$locale.php";
     94    $locale_file = get_template_directory() . "/languages/$locale.php";
    9595    if ( is_readable( $locale_file ) )
    9696        require_once( $locale_file );
Note: See TracChangeset for help on using the changeset viewer.