Ticket #29122: 29122.patch
File 29122.patch, 485 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/l10n.php
diff --git src/wp-includes/l10n.php src/wp-includes/l10n.php index e10d41b..69aa728 100644
function load_theme_textdomain( $domain, $path = false ) { 644 644 $path = get_template_directory(); 645 645 646 646 // Load the textdomain according to the theme 647 $mofile = "{$path}/{$locale}.mo";647 $mofile = untrailingslashit( $path ) . "/{$locale}.mo"; 648 648 if ( $loaded = load_textdomain( $domain, $mofile ) ) 649 649 return $loaded; 650 650