Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:55:24 PM (14 years ago)
Author:
ryan
Message:

Allow wp-content to exist outside of webroot. Props sambauers. see #6938

File:
1 edited

Legend:

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

    r7885 r7999  
    279279 * The plugin may place all of the .mo files in another folder and set
    280280 * the $path based on the relative location from ABSPATH constant. The
    281  * plugin may use the constant PLUGINDIR and/or plugin_basename() to
     281 * plugin may use the constant WP_PLUGIN_DIR and/or plugin_basename() to
    282282 * get path of the plugin and then add the folder which holds the .mo
    283283 * files.
     
    292292
    293293    if ( false === $path )
    294         $path = PLUGINDIR;
    295 
    296     $mofile = ABSPATH . "$path/$domain-$locale.mo";
     294        $path = WP_PLUGIN_DIR;
     295
     296    $mofile = $path . '/'. $domain . '-' . $locale . '.mo';
    297297    load_textdomain($domain, $mofile);
    298298}
Note: See TracChangeset for help on using the changeset viewer.