Skip to content

Commit

Permalink
Revert "Import Maps: Only emit CDATA wrappers for inline scripts for …
Browse files Browse the repository at this point in the history
…JavaScript (#58818)"

This reverts commit 2a16bdd.
  • Loading branch information
cbravobernal committed Feb 8, 2024
1 parent 2a16bdd commit 50ca348
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 208 deletions.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.5/class-wp-script-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function print_script_module_preloads() {
public function print_import_map() {
$import_map = $this->get_import_map();
if ( ! empty( $import_map['imports'] ) ) {
gutenberg_print_inline_script_tag(
wp_print_inline_script_tag(
wp_json_encode( $import_map, JSON_HEX_TAG | JSON_HEX_AMP ),
array(
'type' => 'importmap',
Expand Down
207 changes: 0 additions & 207 deletions lib/compat/wordpress-6.5/script-loader.php

This file was deleted.

0 comments on commit 50ca348

Please sign in to comment.