[buddypress-trac] [BuddyPress Trac] #8679: Only load template pack JS & CSS assets when needed
buddypress-trac
noreply at wordpress.org
Sat Dec 16 10:40:05 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:"13672" 13672]:
{{{
#!CommitTicketReference repository="" revision="13672"
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
See #9033 (trunk)
Closes https://github.com/buddypress/buddypress/pull/201
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8679#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list