[wp-trac] [WordPress Trac] #64574: Regression in `wp.sanitize.stripTags()` in WordPress 7.0-alpha
WordPress Trac
noreply at wordpress.org
Mon Feb 2 18:39:29 UTC 2026
#64574: Regression in `wp.sanitize.stripTags()` in WordPress 7.0-alpha
--------------------------------------+--------------------------
Reporter: hugod | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: General | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: javascript
--------------------------------------+--------------------------
Changes (by westonruter):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"61578" 61578]:
{{{
#!CommitTicketReference repository="" revision="61578"
General: Preserve back-compat for `wp.sanitize.stripTags()` to return
empty string when passed `null`/`undefined`.
This also bumps the `esversion` to 11 in `tests/qunit/.jshintrc` to match
the root `.jshintrc`, following [61544] for #64562.
Follow-up to [61347], [60907].
Props westonruter, jonsurrell, mukesh27, hugod.
See #64274.
Fixes #64574.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64574#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list