[wp-trac] Re: [WordPress Trac] #8446: Using Slug-Data in CSS Classes does not work

WordPress Trac wp-trac at lists.automattic.com
Fri May 22 11:33:07 GMT 2009


#8446: Using Slug-Data in CSS Classes does not work
-------------------------------------+--------------------------------------
 Reporter:  lilyfan                  |        Owner:  nbachiyski
     Type:  defect (bug)             |       Status:  reopened  
 Priority:  high                     |    Milestone:  2.8       
Component:  i18n                     |      Version:  2.7       
 Severity:  major                    |   Resolution:            
 Keywords:  has-patch tested commit  |  
-------------------------------------+--------------------------------------
Changes (by dd32):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 I'd really like to get the slugs back into core.. Using/exposing ID's is
 plain stupid.

 Not only are using id's deprecated (In the sense that the UI doesnt expose
 it), but that they're also fragile like westi said.

 I'd like to see either:
  * "Unsafe" slugs added back
    * non-english users will just have to deal with a defect..
  * safe slugs back in
    * {{{if ( !preg_match('|^[a-z0-9]|i', slug) ) $class[] = $slug;}}}

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


More information about the wp-trac mailing list