[wp-trac] Re: [WordPress Trac] #8446: post_class() outputs invalid css class

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 29 21:57:10 GMT 2009


#8446: post_class() outputs invalid css class
--------------------------+-------------------------------------------------
 Reporter:  lilyfan       |       Owner:  nbachiyski 
     Type:  defect (bug)  |      Status:  new        
 Priority:  high          |   Milestone:  2.8        
Component:  i18n          |     Version:  2.7        
 Severity:  major         |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
Changes (by hakre):

  * milestone:  2.9 => 2.8


Comment:

 Replying to [comment:25 Denis-de-Bernardy]:
 > [...] the feature is seldom used anyway, and it only annoys users who
 worry about their site outputting valid xhtml code.

 the feature used is called CSS and it is used in a thousand themes.
 especially the current theme projects (modular theming solutions,
 frameworks etc.) are heavily using CSS class names.

 this is _not_ about valid xhtml code.

 this is about having slugs of posts as css classes properly utf-8 encoded.
 so if your language is not within the ascii 7bit range you can properly
 use semantic CSS files. that is mostly important for languages beyond
 latin-1. infact, latin-1 languages are really degraded in that case by
 wordpress.

 because your decision is based on misleading stuff (seldom use, xhtml
 validity), i reverted it.

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


More information about the wp-trac mailing list