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

buddypress-trac noreply at wordpress.org
Sat Feb 11 07:49:06 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  |
-----------------------+---------------------
Changes (by imath):

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


Comment:

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

 In 11.0.0 we made a first step into this direction by making available a
 filter to restrict Template Packs assets loading to BuddyPress pages. By
 default this filter was returning `false` to carry on loading assets.

 In 12.0.0 we are changing this default value to `true` so that we are now
 only loading Template Packs assets in BP Pages. If you need to keep these
 assets being loaded everywhere on your site, you'll have to hook to this
 filter & return `false`.

 Eg: `add_filter( 'bp_enqueue_assets_in_bp_pages_only', '__return_false'
 );`

 Props dcavins

 Closes https://github.com/buddypress/buddypress/pull/64
 Fixes #8679
 }}}

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


More information about the buddypress-trac mailing list