Changeset 29856 for trunk/src/wp-includes/l10n.php
- Timestamp:
- 10/08/2014 07:04:05 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/l10n.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r29630 r29856 798 798 799 799 foreach ( $files as $file ) { 800 if ( '.' === $file[0] || is_dir( $file ) ) 800 if ( '.' === $file[0] || is_dir( $file ) ) { 801 801 continue; 802 if ( substr( $file, -3 ) !== '.po' ) 802 } 803 if ( substr( $file, -3 ) !== '.po' ) { 803 804 continue; 804 if ( ! preg_match( '/(?:(.+)-)?([A-Za-z_]{2,6}).po/', $file, $match ) ) 805 } 806 if ( ! preg_match( '/(?:(.+)-)?([A-Za-z_]{2,6}).po/', $file, $match ) ) { 805 807 continue; 808 } 809 if ( ! in_array( substr( $file, 0, -3 ) . '.mo', $files ) ) { 810 continue; 811 } 806 812 807 813 list( , $textdomain, $language ) = $match; 808 if ( '' === $textdomain ) 814 if ( '' === $textdomain ) { 809 815 $textdomain = 'default'; 816 } 810 817 $language_data[ $textdomain ][ $language ] = wp_get_pomo_file_data( WP_LANG_DIR . "$dir/$file" ); 811 818 }
Note: See TracChangeset
for help on using the changeset viewer.