Make WordPress Core

Ticket #55628: 55628.revert-52937-for-testing-do-not-commit.diff

File 55628.revert-52937-for-testing-do-not-commit.diff, 578 bytes (added by costdev, 2 years ago)

This patch is for testing. Do not commit.

  • src/wp-includes/class.wp-scripts.php

    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 { 
    599599                $json_translations = load_script_textdomain( $handle, $domain, $path );
    600600
    601601                if ( ! $json_translations ) {
    602                         return false;
     602                        // Register empty locale data object to ensure the domain still exists.
     603                        $json_translations = '{ "locale_data": { "messages": { "": {} } } }';
    603604                }
    604605
    605606                $output = <<<JS