Skip to content

Commit 0213b11

Browse files
committed
Script Loader: Remove "inline:" prefix from sourceURL.
The prefix may negatively impact some APIs such as the Long Animation Frames API. Developed in WordPress/wordpress-develop#9655. Follow-up to [60685]. Props jonsurrell, swissspidy. Fixes #63887. Built from https://develop.svn.wordpress.org/trunk@60686 git-svn-id: http://core.svn.wordpress.org/trunk@60022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 3b163e8 commit 0213b11

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

wp-includes/class-wp-scripts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function print_extra_script( $handle, $display = true ) {
223223
}
224224

225225
$output .= sprintf(
226-
"\n//# sourceURL=inline:%s",
226+
"\n//# sourceURL=%s",
227227
rawurlencode( "{$handle}-js-extra" )
228228
);
229229

@@ -527,7 +527,7 @@ public function get_inline_script_data( $handle, $position = 'after' ) {
527527
}
528528

529529
$data[] = sprintf(
530-
'//# sourceURL=inline:%s',
530+
'//# sourceURL=%s',
531531
rawurlencode( "{$handle}-js-{$position}" )
532532
);
533533

wp-includes/class-wp-styles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function print_inline_style( $handle, $display = true ) {
338338
}
339339

340340
$output[] = sprintf(
341-
'/*# sourceURL=inline:%s */',
341+
'/*# sourceURL=%s */',
342342
rawurlencode( "{$handle}-inline-css" )
343343
);
344344

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '6.9-alpha-60685';
19+
$wp_version = '6.9-alpha-60686';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)