WordPress.org

Make WordPress Core

Changeset 29984


Ignore:
Timestamp:
10/21/2014 05:57:41 PM (5 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/l10n.php

    r29856 r29984  
    662662
    663663    // Load the textdomain according to the theme
    664     $mofile = "{$path}/{$locale}.mo";
     664    $mofile = untrailingslashit( $path ) . "/{$locale}.mo";
    665665    if ( $loaded = load_textdomain( $domain, $mofile ) )
    666666        return $loaded;
Note: See TracChangeset for help on using the changeset viewer.