Skip to content

Commit 02ca3c0

Browse files
committed
Name search parts
1 parent edae8d5 commit 02ca3c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3855,12 +3855,12 @@ public function set_modifiable_text( string $plaintext_content ): bool {
38553855
* 2: "s"
38563856
* 3: "cript" + a trailing character that terminates a tag name.
38573857
*/
3858-
'~(</?)(s)(cript[\\t\\r\\n\\f />])~i',
3858+
'~(?P<HEAD></?)(?P<S_CHAR>s)(?P<TAIL>cript[\\t\\r\\n\\f />])~i',
38593859
static function ( $matches ) {
3860-
$escaped_s_char = 's' === $matches[2]
3860+
$escaped_s_char = 's' === $matches['S_CHAR']
38613861
? '\\u0073'
38623862
: '\\u0053';
3863-
return "{$matches[1]}{$escaped_s_char}{$matches[3]}";
3863+
return "{$matches['HEAD']}{$escaped_s_char}{$matches['TAIL']}";
38643864
},
38653865
$plaintext_content
38663866
);

0 commit comments

Comments
 (0)