Make WordPress Core

Ticket #29122: 29122.patch

File 29122.patch, 485 bytes (added by bradyvercher, 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 ) { 
    644644                $path = get_template_directory();
    645645
    646646        // Load the textdomain according to the theme
    647         $mofile = "{$path}/{$locale}.mo";
     647        $mofile = untrailingslashit( $path ) . "/{$locale}.mo";
    648648        if ( $loaded = load_textdomain( $domain, $mofile ) )
    649649                return $loaded;
    650650