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

WordPress Trac noreply at wordpress.org
Sat Jan 3 03:45:53 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:  good-first-bug needs-patch needs-    |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------

Comment (by TempAcc):

 Replying to [comment:3 davideugenepratt]:
 > I installed sgrant's patch and it works for me. The unit test ran
 without any failures.
 The patch not covering all possible situations. One of these described
 above by me. Also, as minimum, patch not fixes underscore symbol `_` (try
 instead of hyphen)

 I think the best way use `$fallback` variable when `$sanitized != $class`
 or use term ID always.

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


More information about the wp-trac mailing list