Changeset 39235
- Timestamp:
- 11/15/2016 01:18:37 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r39230 r39235 949 949 * 950 950 * @since 3.0.0 951 * @since 4.7.0 The results are now filterable with the get_available_languages filter. 951 952 * 952 953 * @param string $dir A directory to search for language files. … … 957 958 $languages = array(); 958 959 959 $lang_files = glob( ( is_null( $dir ) ? WP_LANG_DIR : $dir ) . '/*.mo' );960 $lang_files = glob( ( is_null( $dir ) ? WP_LANG_DIR : $dir ) . '/*.mo' ); 960 961 if ( $lang_files ) { 961 962 foreach ( $lang_files as $lang_file ) { … … 968 969 } 969 970 970 return $languages; 971 /** 972 * Filters the list of available language codes 973 * 974 * @since 4.7.0 975 * 976 * @param array $languages An array of available language codes. 977 * @param string $dir The directory where the language files were found. 978 */ 979 return apply_filters( 'get_available_languages', $languages, $dir ); 971 980 } 972 981
Note: See TracChangeset
for help on using the changeset viewer.