Changeset 58952 for trunk/src/wp-includes/class-wp-script-modules.php
- Timestamp:
- 08/29/2024 06:04:02 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-script-modules.php
r58579 r58952 237 237 $import_map = $this->get_import_map(); 238 238 if ( ! empty( $import_map['imports'] ) ) { 239 global $wp_scripts;240 if ( isset( $wp_scripts ) ) {241 wp_print_inline_script_tag(242 wp_get_script_polyfill(243 $wp_scripts,244 array(245 'HTMLScriptElement.supports && HTMLScriptElement.supports("importmap")' => 'wp-polyfill-importmap',246 )247 ),248 array(249 'id' => 'wp-load-polyfill-importmap',250 )251 );252 }253 239 wp_print_inline_script_tag( 254 240 wp_json_encode( $import_map, JSON_HEX_TAG | JSON_HEX_AMP ),
Note: See TracChangeset
for help on using the changeset viewer.