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

WordPress Trac noreply at wordpress.org
Wed Mar 25 19:15:39 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:
-------------------------------+-----------------------------
Changes (by DrewAPicture):

 * keywords:  has-patch needs-testing => has-patch commit
 * owner:   => SergeyBiryukov
 * status:  new => reviewing


Comment:

 @SergeyBiryukov: [attachment:patch.3.diff] fixes the problem for me. I
 wonder what you think about this bit, however: `$taxonomy . '-' .
 sanitize_html_class( $term->slug, $term->term_id )`. What are your
 thoughts on essentially keeping `sanitize_html_class()` separate from the
 term slug logic as .3 does?

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


More information about the wp-trac mailing list