Changeset 12594
- Timestamp:
- 01/02/2010 10:28:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r12459 r12594 370 370 $locale = get_locale(); 371 371 372 if ( false !== $plugin_rel_path ) 372 if ( false !== $plugin_rel_path ) { 373 373 $path = WP_PLUGIN_DIR . '/' . trim( $plugin_rel_path, '/' ); 374 else if ( false !== $abs_rel_path ) 374 } else if ( false !== $abs_rel_path ) { 375 _deprecated_argument( __FUNCTION__, '2.7' ); 375 376 $path = ABSPATH . trim( $abs_rel_path, '/' ); 376 else377 } else { 377 378 $path = WP_PLUGIN_DIR; 378 379 } 380 379 381 $mofile = $path . '/'. $domain . '-' . $locale . '.mo'; 380 382 return load_textdomain( $domain, $mofile );
Note: See TracChangeset
for help on using the changeset viewer.