Avoid double path separators in load_theme_textdomain(). Fixes #29122. Props bradyvercher

git-svn-id: https://develop.svn.wordpress.org/trunk@29984 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2014-10-21 17:57:41 +00:00
parent 368bc7b468
commit 294cb1ec53

View File

@ -661,7 +661,7 @@ function load_theme_textdomain( $domain, $path = false ) {
$path = get_template_directory();
// Load the textdomain according to the theme
$mofile = "{$path}/{$locale}.mo";
$mofile = untrailingslashit( $path ) . "/{$locale}.mo";
if ( $loaded = load_textdomain( $domain, $mofile ) )
return $loaded;