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

WordPress Trac noreply at wordpress.org
Thu Apr 2 01:04:24 UTC 2015


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

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


Comment:

 In [changeset:"31979"]:
 {{{
 #!CommitTicketReference repository="" revision="31979"
 Avoid duplicate classes for different terms with UTF-8 slugs in
 `post_class()` and `body_class()`.

 Fall back to term ID if the sanitized slug is numeric or only contains
 hyphens.

 props SergeyBiryukov, A5hleyRich, sgrant, davideugenepratt.
 fixes #30883.
 }}}

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


More information about the wp-trac mailing list