WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23794, comment 8


Ignore:
Timestamp:
05/08/2013 12:43:08 PM (5 years ago)
Author:
TroyDesign
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23794, comment 8

    initial v1  
    88}
    99}}}
     10
     11or
     12{{{
     13add_filter( 'load_textdomain_mofile', 'tdc_mu_load_textdomain_mofile', 10, 2 );
     14function tdc_mu_load_textdomain_mofile($mofile, $domain) {
     15        if (preg_match('%^'.WP_PLUGIN_DIR.'(.+)%',$mofile,$m) && file_exists(WPMU_PLUGIN_DIR.$m[1])) return WPMU_PLUGIN_DIR.$m[1];
     16        else return $mofile;
     17}
     18}}}