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

WordPress Trac noreply at wordpress.org
Mon Jul 7 18:19:32 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:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  template
--------------------------+------------------------------

Comment (by armyman.ch):

 The {{{body_class}}} function works fine, it's the {{{post_class}}}
 function I'm talking about.
 In {{{/wp-includes/post-template.php}}}, the function {{{get_post_class}}}
 returns an empty array if no post is found.
 I would think that the correct behaviour would be to return an array of
 classes passed to the function.

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


More information about the wp-trac mailing list