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 2031222.
  • Loading branch information
cbravobernal committed Feb 8, 2024
1 parent 94237e0 commit e1526c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 112 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
111 changes: 0 additions & 111 deletions lib/compat/wordpress-6.5/script-loader.php

This file was deleted.

0 comments on commit e1526c6

Please sign in to comment.