diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index 39346c4d0d..1827166b14 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -859,8 +859,9 @@ function _load_textdomain_just_in_time( $domain ) { ); foreach ( $locations as $location ) { - foreach ( get_available_languages( $location ) as $file ) { - $cached_mofiles[] = "{$location}/{$file}.mo"; + $mofiles = glob( $location . '/*.mo' ); + if ( $mofiles ) { + $cached_mofiles = array_merge( $cached_mofiles, $mofiles ); } } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0fc0170f2c..06e8f27622 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta3-39229'; +$wp_version = '4.7-beta3-39230'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.