Ignore the continents-cities mo files when searching for the list of installed language packs. Fixes #12019
git-svn-id: https://develop.svn.wordpress.org/trunk@12988 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2d54780d5e
commit
c45f4d2905
@ -501,7 +501,7 @@ function get_available_languages( $dir = null ) {
|
|||||||
|
|
||||||
if ( is_dir( $dir ) && $dh = opendir( $dir ) ) {
|
if ( is_dir( $dir ) && $dh = opendir( $dir ) ) {
|
||||||
while ( ( $lang_file = readdir( $dh ) ) !== false ) {
|
while ( ( $lang_file = readdir( $dh ) ) !== false ) {
|
||||||
if ( substr( $lang_file, -3 ) == '.mo' )
|
if ( substr( $lang_file, -3 ) == '.mo' && ( false === strpos( $lang_file, 'continents-cities' ) ) )
|
||||||
$languages[] = basename($lang_file, '.mo');
|
$languages[] = basename($lang_file, '.mo');
|
||||||
}
|
}
|
||||||
closedir($dh);
|
closedir($dh);
|
||||||
|
Loading…
Reference in New Issue
Block a user