[wp-trac] [WordPress Trac] #34452: body_class docblock parameter description incorrect

WordPress Trac noreply at wordpress.org
Mon Oct 26 15:08:49 UTC 2015


#34452: body_class docblock parameter description incorrect
-------------------------------+-----------------------------
 Reporter:  JPry               |       Owner:  SergeyBiryukov
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:  2.8
 Severity:  minor              |  Resolution:  fixed
 Keywords:  has-patch commit   |     Focuses:  docs
-------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"35399"]:
 {{{
 #!CommitTicketReference repository="" revision="35399"
 In `get_post_class()`, ensure that we always coerce the class list passed
 to the function to an array, even when it's empty.

 This is consistent with `get_body_class()`, see [18176].

 See #34452.
 }}}

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


More information about the wp-trac mailing list