Ticket #56191: 56191.diff
File 56191.diff, 890 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/l10n.php
1015 1015 * @return string|false The translated strings in JSON encoding on success, 1016 1016 * false if the script textdomain could not be loaded. 1017 1017 */ 1018 function load_script_textdomain( $handle, $domain = 'default', $path = null) {1018 function load_script_textdomain( $handle, $domain = 'default', $path = '' ) { 1019 1019 $wp_scripts = wp_scripts(); 1020 1020 1021 1021 if ( ! isset( $wp_scripts->registered[ $handle ] ) ) { … … 1022 1022 return false; 1023 1023 } 1024 1024 1025 $path = untrailingslashit( $path);1025 $path = untrailingslashit( null !== $path ? $path : '' ); 1026 1026 $locale = determine_locale(); 1027 1027 1028 1028 // If a path was given and the handle file exists simply return it.