WordPress.org

Make WordPress Core

Ticket #18071: 18071.diff

File 18071.diff, 827 bytes (added by solarissmoke, 3 years ago)
  • wp-content/themes/twentyeleven/functions.php

     
    7878         * If you're building a theme based on Twenty Eleven, use a find and replace 
    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 ); 
    8787