[buddypress-trac] [BuddyPress] #4949: Revise enqueue style locations for theme compat

buddypress-trac noreply at wordpress.org
Wed Jun 12 21:54:53 UTC 2013

#4949: Revise enqueue style locations for theme compat
 Reporter:  hnla                                 |       Owner:
     Type:  enhancement                          |  boonebgorges
 Priority:  low                                  |      Status:  closed
Component:  Theme                                |   Milestone:  1.8
 Severity:  normal                               |     Version:
 Keywords:  has-patch 2nd-opinion needs-testing  |  Resolution:  fixed
Changes (by boonebgorges):

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


 In [changeset:"7205"]:
 #!CommitTicketReference repository="" revision="7205"
 Allow JS and CSS assets to be stored in folder stacks, akin to template

 Since BP 1.7 and theme compatibility, it's been possible to override BP's
 fallback templates by providing templates in a number of different
 subdirectories of your theme: 'buddypress' and 'community', by default.
 functionality was not, however, extended to static theme assets like JS
 CSS files, meaning that theme authors were forced to have orphan 'css' and
 files in their theme roots if they wanted to override bp-legacy's assets.

 This changeset mirrors the template_stack() functionality for assets, by
 looking inside of 'buddypress' and 'community' theme subdirectories before
 looking in root 'css' and 'js' directories (which still work, for

 The implementation adopted in this changset is probably temporary for 1.8.
 Future iterations may use an abstracted version of the core template_stack

 Props hnla for early patches and feedback.

 Fixes #4949

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

More information about the buddypress-trac mailing list