[buddypress-trac] [BuddyPress Trac] #7694: Minified assets not enqueued when in child theme

buddypress-trac noreply at wordpress.org
Sun Feb 18 11:33:13 UTC 2018

#7694: Minified assets not enqueued when in child theme
 Reporter:  pscolv        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Templates     |    Version:  2.9.3
 Severity:  normal        |   Keywords:
 I'm using my own buddypress.js and buddypress.css files within my child
 theme. Unfortunately, when trying to minify those, I noticed that the
 original file was still being enqueued. This behaviour differs from the
 bp-legacy folder, where the minified file is chosen by default.

 When digging into the code, I noticed that the buddypress-functions.php
 indeed doesn't try and look for minified assets in child themes.

 This can be fixed easily in the locate_asset_in_stack function. I already
 modified the code and tested accordingly (see attached patch). With this
 new code, either minified or un-minified child theme assets are loaded,
 depending which version exists.



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

More information about the buddypress-trac mailing list