Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#955 closed defect (bug) (fixed)

bp_body_class should work in conjunction with body_class

Reported by: junsuijin's profile junsuijin Owned by: junsuijin's profile junsuijin
Milestone: 1.1 Priority: minor
Severity: Version:
Component: Keywords: has-patch, tested
Cc:

Description

I've written a quick patch and tested it to work. There is no need for body_class on buddypress pages since they always get the id of the latest blog post if it is used. The patch takes this into account and moves the previous 'bp_body_class' action to a filter within bp_the_body_class. bp-sn-framework's header.php is also updated to reflect the template tag change. This change allows for more specific styling on blog pages.

Attachments (1)

enhancement-bp_body_class.patch (1.1 KB) - added by junsuijin 15 years ago.

Download all attachments as: .zip

Change History (3)

#1 @junsuijin
15 years ago

  • Type changed from enhancement to defect

changing to defect as per andy's request.

#2 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [1816]) Adding bp_get_body_class as a filter on body_class so WordPress and BuddyPress body classes can be used and output at the same time. Fixes #955

Note: See TracTickets for help on using tickets.