[wp-trac] [WordPress Trac] #63724: HTML API: Reliably parse HTML attributes in `wp_kses_hair()`

WordPress Trac noreply at wordpress.org
Fri Jan 9 20:15:49 UTC 2026


#63724: HTML API: Reliably parse HTML attributes in `wp_kses_hair()`
-------------------------------------------------+-------------------------
 Reporter:  dmsnell                              |       Owner:  dmsnell
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  7.0
Component:  HTML API                             |     Version:  6.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by jonsurrell):

 The implementation in [https://github.com/WordPress/wordpress-
 develop/pull/9248 PR 9248] is great. It's a big simplification and it
 brings clarity and rigor to this function. Frankly, I like it.

 > Ideally, there would be no need for this function.

 The proposed change is good. But should we bother touching this function
 at all? What about just deprecating it and suggesting folks use the HTML
 API?

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


More information about the wp-trac mailing list