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

buddypress-trac noreply at wordpress.org
Sun Dec 8 23:33:48 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:  Future Release
Component:  Core         |     Version:  1.7
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------
Changes (by needle):

 * keywords:   => has-patch


Comment:

 I'm not qualified to answer the question of whether it would be better to
 merge the class arrays (I assume that there could be knock-on effects in
 various themes if the default WordPress classes ''are'' maintained) but
 the patch I've attached at least addresses the issue of preserving the
 'admin-bar' and 'no-customize-support' classes when they are present.

 As for plugins that inject a class or classes via the 'body_class' filter,
 it is trivial for the plugin authors to use a priority greater than 10,
 thus filtering after BuddyPress has done its stuff. They may, of course,
 not know that their plugin is being used in a BuddyPress context. Hmm.

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


More information about the buddypress-trac mailing list