We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edae8d5 commit 02ca3c0Copy full SHA for 02ca3c0
src/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -3855,12 +3855,12 @@ public function set_modifiable_text( string $plaintext_content ): bool {
3855
* 2: "s"
3856
* 3: "cript" + a trailing character that terminates a tag name.
3857
*/
3858
- '~(</?)(s)(cript[\\t\\r\\n\\f />])~i',
+ '~(?P<HEAD></?)(?P<S_CHAR>s)(?P<TAIL>cript[\\t\\r\\n\\f />])~i',
3859
static function ( $matches ) {
3860
- $escaped_s_char = 's' === $matches[2]
+ $escaped_s_char = 's' === $matches['S_CHAR']
3861
? '\\u0073'
3862
: '\\u0053';
3863
- return "{$matches[1]}{$escaped_s_char}{$matches[3]}";
+ return "{$matches['HEAD']}{$escaped_s_char}{$matches['TAIL']}";
3864
},
3865
$plaintext_content
3866
);
0 commit comments