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 11f51c9 commit a3e0e27Copy full SHA for a3e0e27
src/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -3850,11 +3850,11 @@ public function set_modifiable_text( string $plaintext_content ): bool {
3850
if ( $this->is_javascript_script_tag() ) {
3851
$plaintext_content = preg_replace_callback(
3852
/*
3853
- * This case-insensitive pattern consists of three groups:
+ * This case-insensitive pattern consists of three groups (in order):
3854
*
3855
- * 1: "<" or "</"
3856
- * 2: "s"
3857
- * 3: "cript" + a trailing character that terminates a tag name.
+ * HEAD: "<" or "</"
+ * S_CHAR: "s"
+ * TAIL: "cript" + a trailing tag name termination character
3858
*/
3859
'~(?P<HEAD></?)(?P<S_CHAR>s)(?P<TAIL>cript[\\t\\r\\n\\f />])~i',
3860
static function ( $matches ) {
0 commit comments