Make WordPress Core


Ignore:
Timestamp:
09/16/2005 10:30:03 PM (19 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.