[wp-trac] [WordPress Trac] #28776: post_class should always return additional classes

WordPress Trac noreply at wordpress.org
Mon Jul 7 19:11:08 UTC 2014

#28776: post_class should always return additional classes
 Reporter:  armyman.ch    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  2.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  template

Comment (by armyman.ch):

 Basically, I was using the {{{post_class}}} function in all my theme
 templates, also {{{404.php}}}. Then I noticed that the classes weren't
 being picked up by the function, which I thought might be a mistake. But
 as you have shown, it's intended behaviour. In that case, I will modify my
 {{{404.php}}} and set the class tag directly.

 Thanks for the reference, now I know that it's on purpose.

Ticket URL: <https://core.trac.wordpress.org/ticket/28776#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list