[buddypress-trac] [BuddyPress Trac] #7537: Add the current theme compat id to the body class array

buddypress-trac noreply at wordpress.org
Thu Jun 8 17:02:16 UTC 2017


#7537: Add the current theme compat id to the body class array
-------------------------+-----------------
 Reporter:  hnla         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  low          |  Milestone:  2.9
Component:  Core         |    Version:
 Severity:  trivial      |   Keywords:
-------------------------+-----------------
 It might be helpful to add the `theme_compat->theme->id` to the body
 classes as an additional hook for authors, plugins to be able to hook
 styles to particular template packs.

 We can do this now in advance of new registered themes safely as we'll
 just be adding a class that wouldn't exist before.

 I've used the id in stead of the name as 'name' in legacies case  is a
 string with whitespace, instead I've prepended `bp-` to the id to create
 the class token.

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


More information about the buddypress-trac mailing list