From 165e8555104da2b5bdfb8b101df0d51a7c8dea91 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 27 May 2012 16:42:38 +0000 Subject: [PATCH] WP_Theme: If no 'Domain Path' header is specified, default to looking in the /languages directory. see #20103, see #20448. git-svn-id: https://develop.svn.wordpress.org/trunk@20945 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-theme.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index 1515a69b09..e63429a009 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -1025,6 +1025,8 @@ final class WP_Theme implements ArrayAccess { $path = $this->get_stylesheet_directory(); if ( $domainpath = $this->get('DomainPath') ) $path .= $domainpath; + else + $path .= '/languages'; $this->textdomain_loaded = load_theme_textdomain( $textdomain, $path ); return $this->textdomain_loaded;