diff --git a/src/wp-includes/class.wp-scripts.php b/src/wp-includes/class.wp-scripts.php
index aebf3a3b59..d3f62699dc 100644
a
|
b
|
class WP_Scripts extends WP_Dependencies { |
599 | 599 | $json_translations = load_script_textdomain( $handle, $domain, $path ); |
600 | 600 | |
601 | 601 | if ( ! $json_translations ) { |
602 | | return false; |
| 602 | // Register empty locale data object to ensure the domain still exists. |
| 603 | $json_translations = '{ "locale_data": { "messages": { "": {} } } }'; |
603 | 604 | } |
604 | 605 | |
605 | 606 | $output = <<<JS |