Changeset 19058
- Timestamp:
- 10/25/2011 04:42:16 AM (13 years ago)
- Location:
- trunk/wp-content/themes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/functions.php
r18385 r19058 79 79 * to change 'twentyeleven' to the name of your theme in all the template files. 80 80 */ 81 load_theme_textdomain( 'twentyeleven', TEMPLATEPATH. '/languages' );81 load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' ); 82 82 83 83 $locale = get_locale(); 84 $locale_file = TEMPLATEPATH. "/languages/$locale.php";84 $locale_file = get_template_directory() . "/languages/$locale.php"; 85 85 if ( is_readable( $locale_file ) ) 86 86 require_once( $locale_file ); -
trunk/wp-content/themes/twentyten/functions.php
r17478 r19058 89 89 // Make theme available for translation 90 90 // Translations can be filed in the /languages/ directory 91 load_theme_textdomain( 'twentyten', TEMPLATEPATH. '/languages' );91 load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' ); 92 92 93 93 $locale = get_locale(); 94 $locale_file = TEMPLATEPATH. "/languages/$locale.php";94 $locale_file = get_template_directory() . "/languages/$locale.php"; 95 95 if ( is_readable( $locale_file ) ) 96 96 require_once( $locale_file );
Note: See TracChangeset
for help on using the changeset viewer.