Skip to content

Commit 71d2686

Browse files
committed
Re-order tag name termination chars to match elsewhere
1 parent eef0ccb commit 71d2686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4146,7 +4146,7 @@ private function is_json_script_tag(): bool {
41464146
*/
41474147
private function escape_javascript_script_contents( string $text ): string {
41484148
return preg_replace_callback(
4149-
'~(?P<HEAD></?)(?P<S_CHAR>s)(?P<TAIL>cript[\\t\\r\\n\\f />])~i',
4149+
'~(?P<HEAD></?)(?P<S_CHAR>s)(?P<TAIL>cript[ \\t\\f\\r\\n/>])~i',
41504150
static function ( $matches ) {
41514151
$escaped_s_char = 's' === $matches['S_CHAR']
41524152
? '\\u0073'

0 commit comments

Comments
 (0)