[wp-trac] [WordPress Trac] #30883: Duplicate post_class() for different categories

WordPress Trac noreply at wordpress.org
Thu Apr 2 00:57:02 UTC 2015


#30883: Duplicate post_class() for different categories
-------------------------------+-----------------------------
 Reporter:  SergeyBiryukov     |       Owner:  SergeyBiryukov
     Type:  defect (bug)       |      Status:  reviewing
 Priority:  normal             |   Milestone:  4.2
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  has-patch commit   |     Focuses:
-------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:13 DrewAPicture]:
 > What are your thoughts on essentially keeping `sanitize_html_class()`
 separate from the term slug logic as .3 does?

 Actually, I don't think we should touch `sanitize_html_class()` at all, it
 works as expected.

 This logic should be in `post_class()` and `body_class()`.

 [attachment:30883.2.diff] is a new patch with new tests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30883#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list