[wp-trac] [WordPress Trac] #17067: Appearance > Menus removing custom class underscore ("_")

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 6 21:18:21 UTC 2011


#17067: Appearance > Menus removing custom class underscore ("_")
--------------------------+------------------------------
 Reporter:  swartsr       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by nacin):

 sanitize_html_class() strips the string down to A-Z,a-z,0-9 and hyphens.
 Really not sure why underscores aren't allowed there. Per the spec they
 are: http://www.w3.org/TR/CSS21/syndata.html.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17067#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list