Use get_template_directory() instead of TEMPLATEPATH in Twentys Ten and Eleven. props solarisssmoke, fixes #18071.
git-svn-id: https://develop.svn.wordpress.org/trunk@19058 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f869eb56b8
commit
51d0bd90f6
@ -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 );
|
||||
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user