Opened 11 years ago
Closed 11 years ago
#28541 closed enhancement (fixed)
Remove duplicates in post_class/body_class
Reported by: | Compute | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Themes | Keywords: | has-patch commit |
Focuses: | template | Cc: |
Description
With #18804 has-post-thumbnail has not been added. What if other plugins have already used this for a while? What if there is duplicate classes in multiple plugins?
While this does not break anything it's silly to have 2-3 of the same class in the same element.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
array_unique( $classes ) before returning classes