[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 21:30:22 GMT 2009
#8446: Using Slug-Data in CSS Classes does not work
-------------------------------------+--------------------------------------
Reporter: lilyfan | Owner: westi
Type: defect (bug) | Status: reopened
Priority: high | Milestone: 2.8
Component: i18n | Version: 2.7
Severity: major | Resolution:
Keywords: has-patch tested commit |
-------------------------------------+--------------------------------------
Comment(by westi):
Replying to [comment:62 demetris]:
> This may very well be a stupid question, but I’ll ask it.
>
> Does the CSS class name have to come either from the slug or from the
term ID?
>
> Why not get it from the category/tag *name*?
For now the slugs are a good source for this data because they are close
to the sanitised value as an endpoint as they have been reduced down to
ascii + %encoding of other chars. We can easily strip out the %encoded
ones and return a simple ascii version for a good 80% of names.
When we have a better solution for speedily producing names in other
character sets we can revisit the source data for the sanitisation.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8446#comment:64>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list