Changeset 7999 for trunk/wp-includes/l10n.php
- Timestamp:
- 05/27/2008 05:55:24 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/l10n.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r7885 r7999 279 279 * The plugin may place all of the .mo files in another folder and set 280 280 * the $path based on the relative location from ABSPATH constant. The 281 * plugin may use the constant PLUGINDIR and/or plugin_basename() to281 * plugin may use the constant WP_PLUGIN_DIR and/or plugin_basename() to 282 282 * get path of the plugin and then add the folder which holds the .mo 283 283 * files. … … 292 292 293 293 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'; 297 297 load_textdomain($domain, $mofile); 298 298 }
Note: See TracChangeset
for help on using the changeset viewer.