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

buddypress-trac noreply at wordpress.org
Tue Jul 26 14:59:43 UTC 2022


#8679: Only load template pack JS & CSS assets when needed
-----------------------------------+---------------------
 Reporter:  imath                  |       Owner:  imath
     Type:  defect (bug)           |      Status:  closed
 Priority:  high                   |   Milestone:  11.0.0
Component:  Templates              |     Version:
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+---------------------
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13306" 13306]:
 {{{
 #!CommitTicketReference repository="" revision="13306"
 First step towards only loading Template Packs assets in BP pages

 Avoid loading these assets everywhere inside the blog is a frequent
 request made by BuddyPress users. In 11.0.0 we are doing a first step into
 this direction by making available a new filter to restrict Template Packs
 assets loading to BuddyPress pages.

 We encourage these users to simply add the `add_filter(
 'bp_enqueue_assets_in_bp_pages_only', '__return_true' );` code into a BP
 Custom file for instance to contribute to testing whether it has an
 unwanted side effect on the BuddyPress plugins that they might have
 activated.

 This will help us feel more secure about completely restricting these
 assets to BP pages in a second step.

 Props dcavins

 Fixes #8679
 }}}

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


More information about the buddypress-trac mailing list