From 1154e4b46877c417dad4997d538737fd2fc4cd3a Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 25 Oct 2011 04:42:16 +0000 Subject: [PATCH] Use get_template_directory() instead of TEMPLATEPATH in Twentys Ten and Eleven. props solarisssmoke, fixes #18071. git-svn-id: http://svn.automattic.com/wordpress/trunk@19058 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/functions.php | 4 ++-- wp-content/themes/twentyten/functions.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index 1997eb2bd..a2217ddd3 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -78,10 +78,10 @@ function twentyeleven_setup() { * If you're building a theme based on Twenty Eleven, use a find and replace * to change 'twentyeleven' to the name of your theme in all the template files. */ - load_theme_textdomain( 'twentyeleven', TEMPLATEPATH . '/languages' ); + load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' ); $locale = get_locale(); - $locale_file = TEMPLATEPATH . "/languages/$locale.php"; + $locale_file = get_template_directory() . "/languages/$locale.php"; if ( is_readable( $locale_file ) ) require_once( $locale_file ); diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 36f55066f..0e5f5aa94 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -88,10 +88,10 @@ function twentyten_setup() { // Make theme available for translation // Translations can be filed in the /languages/ directory - load_theme_textdomain( 'twentyten', TEMPLATEPATH . '/languages' ); + load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' ); $locale = get_locale(); - $locale_file = TEMPLATEPATH . "/languages/$locale.php"; + $locale_file = get_template_directory() . "/languages/$locale.php"; if ( is_readable( $locale_file ) ) require_once( $locale_file );