Ticket #6951: theme_l10n_directory.diff
| File theme_l10n_directory.diff, 0.6 kB (added by filosofo, 4 months ago) |
|---|
-
wp-includes/l10n.php
old new 309 309 * 310 310 * @param string $domain Unique identifier for retrieving translated strings 311 311 */ 312 function load_theme_textdomain($domain ) {312 function load_theme_textdomain($domain, $path = false) { 313 313 $locale = get_locale(); 314 314 315 $mofile = get_template_directory() . "/$locale.mo"; 315 $path = ( empty( $path ) ) ? get_template_directory() : $path; 316 317 $mofile = "$path/$locale.mo"; 316 318 load_textdomain($domain, $mofile); 317 319 } 318 320
