[wp-trac] [WordPress Trac] #21421: Sanitize/remove admin page slug from admin menu CSS classes

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 30 11:26:15 UTC 2012


#21421: Sanitize/remove admin page slug  from admin menu CSS classes
----------------------------+-----------------------------
 Reporter:  kawauso         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 As I discovered when testing #21307, browsers won't parse a CSS class name
 with both underscores and hyphens. Instead, they handle it ''really''
 badly.

 For example: `.toplevel_page_link-manager` will affect `body` in both
 Firefox and Chrome.

 Plugin page menu items have both an ID and class generated as such, which
 seems rather redundant. I propose either dropping the redundant and only
 partly functional CSS class or standardising the menu slug to produce a
 valid class name.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21421>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list