[wp-trac] [WordPress Trac] #64574: Regression in `wp.sanitize.stripTags()` in WordPress 7.0-alpha

WordPress Trac noreply at wordpress.org
Mon Mar 2 19:50:20 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
--------------------------------------+--------------------------

Comment (by westonruter):

 In [changeset:"61783" 61783]:
 {{{
 #!CommitTicketReference repository="" revision="61783"
 General: Update `wp.sanitize.stripTags()` to return empty string when not
 passed a string.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10994

 Follow-up to r61585, r61578.

 Props westonruter, jonsurrell, dmsnell, hugod.
 See #64574, #64274.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64574#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list