[buddypress-trac] [BuddyPress] #4929: bp_get_the_body_class ignoring other plugins' classes on BP-specific pages

buddypress-trac noreply at wordpress.org
Sat Apr 13 18:46:18 UTC 2013


#4929: bp_get_the_body_class ignoring other plugins' classes on BP-specific pages
-------------------------+-----------------
 Reporter:  DJPaul       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  1.8
Component:  Core         |    Version:  1.7
 Severity:  normal       |   Keywords:
-------------------------+-----------------
 The bp_get_the_body_class() function doesn't merge classes added by other
 plugins to the body_class filter when viewing a BuddyPress-specific page.

 This looks to be intentional but it causes compatibility problems with
 other plugins that add classes to this filter that are expected to be
 present regardless of whether the user's viewing a BuddyPress-generated
 page or not.

 A plugin that demonstrates this problem is Achievements v3.2.1 --
 http://downloads.wordpress.org/plugin/achievements.3.2.1.zip -- to
 recreate, create an achievement, award it to yourself. Visit the root of
 your site; you'll get a overlay/pop-up window. Click on the outside of the
 window to close it. Then visit a BP page (e.g. /activity) and try to do
 the same. It doesn't work because the "achievement-notifications" class is
 missing from body.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4929>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list