WordPress.org

Make WordPress Core

Changeset 12988


Ignore:
Timestamp:
02/06/10 11:42:20 (4 years ago)
Author:
westi
Message:

Ignore the continents-cities mo files when searching for the list of installed language packs. Fixes #12019

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/l10n.php

    r12946 r12988  
    502502    if ( is_dir( $dir ) && $dh = opendir( $dir ) ) { 
    503503        while ( ( $lang_file = readdir( $dh ) ) !== false ) { 
    504             if ( substr( $lang_file, -3 ) == '.mo' ) 
     504            if ( substr( $lang_file, -3 ) == '.mo' && ( false === strpos( $lang_file, 'continents-cities' ) ) ) 
    505505                $languages[] = basename($lang_file, '.mo'); 
    506506        } 
Note: See TracChangeset for help on using the changeset viewer.