Skip to content

Commit

Permalink
Exclude admin pot files when calculating the list of installed langua…
Browse files Browse the repository at this point in the history
…ges in get_available_languages(). fixes #20676

git-svn-id: http://core.svn.wordpress.org/trunk@20788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed May 14, 2012
1 parent 52e7e65 commit f6b643e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-includes/l10n.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit f6b643e

Please sign in to comment.