[wp-trac] [WordPress Trac] #56433: invalid regex used in preg_replace
WordPress Trac
noreply at wordpress.org
Wed Aug 24 20:35:16 UTC 2022
#56433: invalid regex used in preg_replace
--------------------------+------------------------------
Reporter: chocofc1 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> Found in /wp-includes/formatting.php line 5385
>
> $string = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '',
> $string );
>
> I tried this exactly as it is and it does nothing
New description:
Found in /wp-includes/formatting.php line 5385
{{{
$string = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string
);
}}}
I tried this exactly as it is and it does nothing
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56433#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list