WordPress.org

Make WordPress Core

Changeset 8041


Ignore:
Timestamp:
06/03/08 17:19:47 (6 years ago)
Author:
ryan
Message:

Make load_plugin_textdomain() work with WP_CONTENT_DIR. Props sambauers. see #6938

File:
1 edited

Legend:

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

    r7999 r8041  
    292292 
    293293    if ( false === $path ) 
    294         $path = WP_PLUGIN_DIR; 
    295  
    296     $mofile = $path . '/'. $domain . '-' . $locale . '.mo'; 
     294        $path = ''; 
     295    else 
     296        $path = '/' . trim(trim($path), '/'); 
     297 
     298    $mofile = WP_PLUGIN_DIR . $path . '/'. $domain . '-' . $locale . '.mo'; 
    297299    load_textdomain($domain, $mofile); 
    298300} 
Note: See TracChangeset for help on using the changeset viewer.