I18N: Don't use get_available_languages() in _load_textdomain_just_in_time().

`get_available_languages()` is only designed to work with translations for core. Using it for plugins/themes means unnecessary `strpos()` checks and incomplete results for plugins/themes whose names are beginning with `admin-` or `ms-`.

Props swissspidy, ocean90.
Fixes #38590.
Built from https://develop.svn.wordpress.org/trunk@39230


git-svn-id: http://core.svn.wordpress.org/trunk@39170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling
2016-11-14 21:07:30 +00:00
parent 9daebf050a
commit c3dc173799
2 changed files with 4 additions and 3 deletions

View File

@@ -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.