[wp-trac] [WordPress Trac] #56433: invalid regex used in preg_replace
WordPress Trac
noreply at wordpress.org
Wed Aug 24 20:34:44 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 | Keywords:
Focuses: |
--------------------------+-----------------------------
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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list