[wp-trac] [WordPress Trac] #18875: CSS classes for WP List Table are not properly sanitized

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 6 21:54:00 UTC 2011


#18875: CSS classes for WP List Table are not properly sanitized
----------------------------+-----------------------
 Reporter:  sbressler       |       Owner:  scottbre
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.3
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+-----------------------

Comment (by sbressler):

 sanitize_html_class doesn't change spaces into dashes, which
 sanitize_title does. While we can leave that to be the responsibility of
 users of WP_List_Table, I think using dashes for replacements makes more
 sense.

 I need to check all the users of WP_List_Table to see if this would affect
 any of them. My guess is that it won't, but I'll verify later today.

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


More information about the wp-trac mailing list