diff --git src/wp-includes/class.wp-scripts.php src/wp-includes/class.wp-scripts.php
index 0f38a48618..4979779350 100644
|
|
|
class WP_Scripts extends WP_Dependencies {
|
| 562 | 562 | * @param string $path Optional. The full file path to the directory containing translation files. |
| 563 | 563 | * @return bool True if the text domain was registered, false if not. |
| 564 | 564 | */ |
| 565 | | public function set_translations( $handle, $domain = 'default', $path = null ) { |
| | 565 | public function set_translations( $handle, $domain = 'default', $path = '' ) { |
| 566 | 566 | if ( ! isset( $this->registered[ $handle ] ) ) { |
| 567 | 567 | return false; |
| 568 | 568 | } |
diff --git src/wp-includes/functions.wp-scripts.php src/wp-includes/functions.wp-scripts.php
index 82d3685672..e45e9a0fb1 100644
|
|
|
function wp_localize_script( $handle, $object_name, $l10n ) {
|
| 237 | 237 | * @param string $path Optional. The full file path to the directory containing translation files. |
| 238 | 238 | * @return bool True if the text domain was successfully localized, false otherwise. |
| 239 | 239 | */ |
| 240 | | function wp_set_script_translations( $handle, $domain = 'default', $path = null ) { |
| | 240 | function wp_set_script_translations( $handle, $domain = 'default', $path = '' ) { |
| 241 | 241 | global $wp_scripts; |
| 242 | 242 | |
| 243 | 243 | if ( ! ( $wp_scripts instanceof WP_Scripts ) ) { |
diff --git src/wp-includes/l10n.php src/wp-includes/l10n.php
index 3922805a87..db1cae60fd 100644
|
|
|
function load_child_theme_textdomain( $domain, $path = false ) {
|
| 1008 | 1008 | * @return string|false The translated strings in JSON encoding on success, |
| 1009 | 1009 | * false if the script textdomain could not be loaded. |
| 1010 | 1010 | */ |
| 1011 | | function load_script_textdomain( $handle, $domain = 'default', $path = null ) { |
| | 1011 | function load_script_textdomain( $handle, $domain = 'default', $path = '' ) { |
| 1012 | 1012 | $wp_scripts = wp_scripts(); |
| 1013 | 1013 | |
| 1014 | 1014 | if ( ! isset( $wp_scripts->registered[ $handle ] ) ) { |