Changeset 12733 for trunk/wp-includes/l10n.php
- Timestamp:
- 01/15/2010 10:11:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r12594 r12733 314 314 function load_textdomain( $domain, $mofile ) { 315 315 global $l10n; 316 316 317 317 $plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile ); 318 318 319 319 if ( true == $plugin_override ) { 320 320 return true; 321 321 } 322 322 323 323 do_action( 'load_textdomain', $domain, $mofile ); 324 324 325 325 $mofile = apply_filters( 'load_textdomain_mofile', $mofile, $domain ); 326 326 … … 334 334 335 335 $l10n[$domain] = &$mo; 336 336 337 337 return true; 338 338 } … … 378 378 $path = WP_PLUGIN_DIR; 379 379 } 380 380 381 381 $mofile = $path . '/'. $domain . '-' . $locale . '.mo'; 382 382 return load_textdomain( $domain, $mofile );
Note: See TracChangeset
for help on using the changeset viewer.