Exclude admin pot files when calculating the list of installed languages in get_available_languages(). fixes #20676
git-svn-id: http://core.svn.wordpress.org/trunk@20788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
52e7e65d2d
commit
f6b643e971
|
@ -540,7 +540,8 @@ function get_available_languages( $dir = null ) {
|
|||
|
||||
foreach( (array)glob( ( is_null( $dir) ? WP_LANG_DIR : $dir ) . '/*.mo' ) as $lang_file ) {
|
||||
$lang_file = basename($lang_file, '.mo');
|
||||
if ( 0 !== strpos( $lang_file, 'continents-cities' ) && 0 !== strpos( $lang_file, 'ms-' ) )
|
||||
if ( 0 !== strpos( $lang_file, 'continents-cities' ) && 0 !== strpos( $lang_file, 'ms-' ) &&
|
||||
0 !== strpos( $lang_file, 'admin-' ))
|
||||
$languages[] = $lang_file;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue