Ticket #62519: 62519.patch
File 62519.patch, 894 bytes (added by , 6 months ago) |
---|
-
wp-includes/l10n.php
1337 1337 return false; 1338 1338 } 1339 1339 1340 $locale = determine_locale();1341 $path = $wp_textdomain_registry->get( $domain, $locale );1342 if ( ! $path ) {1343 return false;1344 }1345 1346 1340 if ( ! doing_action( 'after_setup_theme' ) && ! did_action( 'after_setup_theme' ) ) { 1347 1341 _doing_it_wrong( 1348 1342 __FUNCTION__, … … 1356 1350 ); 1357 1351 } 1358 1352 1353 $locale = determine_locale(); 1354 $path = $wp_textdomain_registry->get( $domain, $locale ); 1355 if ( ! $path ) { 1356 return false; 1357 } 1358 1359 1359 // Themes with their language directory outside of WP_LANG_DIR have a different file name. 1360 1360 $template_directory = trailingslashit( get_template_directory() ); 1361 1361 $stylesheet_directory = trailingslashit( get_stylesheet_directory() );