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:
parent
368bc7b468
commit
294cb1ec53
@ -661,7 +661,7 @@ function load_theme_textdomain( $domain, $path = false ) {
|
|||||||
$path = get_template_directory();
|
$path = get_template_directory();
|
||||||
|
|
||||||
// Load the textdomain according to the theme
|
// Load the textdomain according to the theme
|
||||||
$mofile = "{$path}/{$locale}.mo";
|
$mofile = untrailingslashit( $path ) . "/{$locale}.mo";
|
||||||
if ( $loaded = load_textdomain( $domain, $mofile ) )
|
if ( $loaded = load_textdomain( $domain, $mofile ) )
|
||||||
return $loaded;
|
return $loaded;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user