WordPress.org

Make WordPress Core

Ticket #11012: l10n-filter-textdomain.patch

File l10n-filter-textdomain.patch, 400 bytes (added by johanee, 9 years ago)

Filter mofile in load_textdomain

  • wp-includes/l10n.php

     
    319319function load_textdomain($domain, $mofile) {
    320320        global $l10n;
    321321
     322        $mofile = apply_filters('load_textdomain_file', $mofile, $domain);
     323
    322324        if ( !is_readable( $mofile ) ) return false;
    323325
    324326        $mo = new MO();