Changeset 2726298
- Timestamp:
- 05/18/2022 08:21:53 PM (4 years ago)
- File:
-
- 1 edited
-
instant-page/trunk/instantpage.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
instant-page/trunk/instantpage.php
r2313031 r2726298 18 18 function instantpage_script_loader_tag( $tag, $handle ) { 19 19 if ( 'instantpage' === $handle ) { 20 $tag = str_replace( 'text/javascript', 'module', $tag ); 20 if ( strpos( $tag, 'text/javascript' ) !== false ) { 21 $tag = str_replace( 'text/javascript', 'module', $tag ); 22 } 23 else { 24 $tag = str_replace( '<script ', "<script type='module' ", $tag ); 25 } 21 26 } 22 27 return $tag;
Note: See TracChangeset
for help on using the changeset viewer.