[wp-trac] [WordPress Trac] #30883: Duplicate post_class() for different categories
WordPress Trac
noreply at wordpress.org
Tue Mar 17 17:10:05 UTC 2015
#30883: Duplicate post_class() for different categories
------------------------------------------+------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+------------------
Changes (by DrewAPicture):
* keywords: has-patch => needs-patch needs-unit-tests
Comment:
We're going to need a new patch here. [attachment:patch.2.diff] doesn't
account for the "category" part of the class name (therefore removing the
hyphens via the `preg_replace()` returns "category" not empty), and for
that matter, we should probably handle it for any prospective taxonomy
slug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30883#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list