Best WordPress Hosting
 

BuddyPress 11.0.0 Adds Filter for Improved JS and CSS Asset Loading, WebP Support, and New Ways to Fetch Activities

via wptavern.com => original post link

BuddyPress 11.0.0 is now available thanks to the efforts of 34 contributors. The release is named “La Scala” in honor of a pizza restaurant located in Issy-Les-Moulineaux, a Paris suburb.

Version 11.0.0 introduces a few important changes. BuddyPress has improved the way it loads its JavaScript and CSS assets with the addition of a new filter so that they are now only loaded on community pages. Previously, the plugin would load them indiscriminately on every page, a leftover from how they were loaded in the first Template Pack (BP Legacy). This change is being rolled out progressively, so users who want to take advantage of this improvement will need to add the filter to their bp-custom.php file.

add_filter( ‘bp_enqueue_assets_in_bp_pages_only’, ‘__return_true’ );