[buddypress-trac] [BuddyPress] #5025: BUG? bp_the_body_class missing parameter

buddypress-trac noreply at wordpress.org
Tue May 28 01:30:39 UTC 2013

#5025: BUG? bp_the_body_class missing parameter
 Reporter:  tivnet        |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  lowest        |   Milestone:  1.8
Component:  Core          |     Version:  1.7
 Severity:  trivial       |  Resolution:  fixed
 Keywords:  needs-patch   |
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"7113"]:
 #!CommitTicketReference repository="" revision="7113"
 Pass a default value to the first param of bp_get_the_body_class()

 When bp_get_the_body_class() is run as a filter on 'body_class', the first
 param is never empty. However, if you call the function directly, or in
 particular if you call the echo wrapper bp_the_body_class(), you will get
 PHP error due to the fact that no default value for the function has been
 provided. This changeset prevents any such errors.

 Fixes #5025

 Props tivnet

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5025#comment:2>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list