[wp-trac] [WordPress Trac] #33924: sanitize_html_class valid characters

WordPress Trac noreply at wordpress.org
Fri Jan 6 13:10:46 UTC 2017


#33924: sanitize_html_class valid characters
-------------------------------------------------+-------------------------
 Reporter:  m-e-h                                |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Formatting                           |  Release
 Severity:  normal                               |     Version:  4.4
 Keywords:  has-patch 2nd-opinion has-unit-      |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 Stumbled upon this while working on #39493.

 [https://css-tricks.com/unicode-class-names/ CSS classes support Unicode
 characters], so `sanitize_html_class()` should support them as well in
 order for multibyte post slugs to be used as body classes.

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


More information about the wp-trac mailing list