Skip to content

Commit 2bc812d

Browse files
westonrutersirreal
andcommitted
Add sourceURL comment
Co-authored-by: Jon Surrell <[email protected]>
1 parent 5a3a9c9 commit 2bc812d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wp-includes/formatting.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5985,8 +5985,10 @@ function _print_emoji_detection_script() {
59855985
)
59865986
);
59875987

5988+
$emoji_loader_script_path = '/js/wp-emoji-loader' . wp_scripts_get_suffix() . '.js';
59885989
wp_print_inline_script_tag(
5989-
file_get_contents( ABSPATH . WPINC . '/js/wp-emoji-loader' . wp_scripts_get_suffix() . '.js' ),
5990+
rtrim( file_get_contents( ABSPATH . WPINC . $emoji_loader_script_path ) ) . "\n" .
5991+
'//# sourceURL=' . includes_url( $emoji_loader_script_path ),
59905992
array(
59915993
'type' => 'module',
59925994
)

0 commit comments

Comments
 (0)