mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user