[buddypress-trac] [BuddyPress Trac] #8679: Only load template pack JS & CSS assets when needed

buddypress-trac noreply at wordpress.org
Sat Dec 16 10:48:53 UTC 2023


#8679: Only load template pack JS & CSS assets when needed
-----------------------+---------------------
 Reporter:  imath      |       Owner:  imath
     Type:  task       |      Status:  closed
 Priority:  high       |   Milestone:  12.0.0
Component:  Templates  |     Version:
 Severity:  normal     |  Resolution:  fixed
 Keywords:  has-patch  |
-----------------------+---------------------

Comment (by imath):

 In [changeset:"13673" 13673]:
 {{{
 #!CommitTicketReference repository="" revision="13673"
 BP Template packs: only add the `no-js` body class in community area

 Since [13418] we do not load community assets by default everywhere on the
 site anymore.

 But this commit appears to be incomplete: we also need to avoid adding the
 `no-js` body class when not in a community area.

 NB: returning `false` to the `'bp_enqueue_assets_in_bp_pages_only'` filter
 will carry on loading BP Template pack assets everywhere on the site.

 Props sabernhardt, emaralive, shawfactor

 See #8679
 Fixes #9033 (branch 12.0)
 }}}

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


More information about the buddypress-trac mailing list