Changeset 2888

Show
Ignore:
Timestamp:
09/16/05 22:30:03 (3 years ago)
Author:
ryan
Message:

Add variable path support to load_plugin_textdomain() in order to support subdir plugins. Props firas. fixes #1468

Files:

Legend:

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

    r2454 r2888  
    8787} 
    8888 
    89 function load_plugin_textdomain($domain) { 
     89function load_plugin_textdomain($domain, $path = 'wp-content/plugins') { 
    9090    $locale = get_locale(); 
    9191     
    92     $mofile = ABSPATH . "wp-content/plugins/$domain-$locale.mo"; 
     92    $mofile = ABSPATH . "$path/$domain-$locale.mo"; 
    9393    load_textdomain($domain, $mofile); 
    9494}