Changeset 44419
- Timestamp:
- 01/07/2019 02:41:53 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/src/wp-includes/l10n.php
r44288 r44419 898 898 $file_base = $domain === 'default' ? $locale : $domain . '-' . $locale; 899 899 $handle_filename = $file_base . '-' . $handle . '.json'; 900 if ( $path && file_exists( $path . '/' . $handle_filename ) ) { 901 return load_script_translations( $path . '/' . $handle_filename, $handle, $domain ); 900 901 if ( $path ) { 902 $translations = load_script_translations( $path . '/' . $handle_filename, $handle, $domain ); 903 904 if ( $translations ) { 905 return $translations; 906 } 902 907 } 903 908 … … 959 964 960 965 $md5_filename = $file_base . '-' . md5( $relative ) . '.json'; 961 if ( $path && file_exists( $path . '/' . $md5_filename ) ) { 962 return load_script_translations( $path . '/' . $md5_filename, $handle, $domain ); 963 } 964 if ( file_exists( $languages_path . '/' . $md5_filename ) ) { 965 return load_script_translations( $languages_path . '/' . $md5_filename, $handle, $domain ); 966 967 if ( $path ) { 968 $translations = load_script_translations( $path . '/' . $md5_filename, $handle, $domain ); 969 970 if ( $translations ) { 971 return $translations; 972 } 973 } 974 975 $translations = load_script_translations( $languages_path . '/' . $md5_filename, $handle, $domain ); 976 977 if ( $translations ) { 978 return $translations; 966 979 } 967 980
Note: See TracChangeset
for help on using the changeset viewer.