Make WordPress Core

Ticket #38590: 38590.diff

File 38590.diff, 485 bytes (added by swissspidy, 9 years ago)
  • src/wp-includes/l10n.php

    diff --git src/wp-includes/l10n.php src/wp-includes/l10n.php
    index e8bb37a..10a9071 100644
    function _load_textdomain_just_in_time( $domain ) { 
    859859                );
    860860
    861861                foreach ( $locations as $location ) {
    862                         foreach ( get_available_languages( $location ) as $file ) {
    863                                 $cached_mofiles[] = "{$location}/{$file}.mo";
    864                         }
     862                        $cached_mofiles = array_merge( $cached_mofiles, glob( $location . '/*.mo' ) );
    865863                }
    866864        }
    867865