From c45f4d29051f33366a4766a1261aa74836a74e2b Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sat, 6 Feb 2010 11:42:20 +0000 Subject: [PATCH] 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 --- wp-includes/l10n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index a7c0a755a3..50964410a4 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -501,7 +501,7 @@ function get_available_languages( $dir = null ) { if ( is_dir( $dir ) && $dh = opendir( $dir ) ) { 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'); } closedir($dh);