[buddypress-trac] [BuddyPress Trac] #8842: Filter to stop assets loading outside of BuddyPress Core is not working
buddypress-trac
noreply at wordpress.org
Fri Feb 17 10:38:06 UTC 2023
#8842: Filter to stop assets loading outside of BuddyPress Core is not working
--------------------------+-----------------------------
Reporter: DeFries | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 11.1.0
Severity: normal | Keywords:
--------------------------+-----------------------------
Inside a WordPress multi-site environment, I have BuddPress network
activated. I've added the following to the top of my bp-custom.php file:
{{{
/**
* Stop loading BuddyPress assets in places where that's not needed.
*/
add_filter( 'bp_enqueue_assets_in_bp_pages_only', '__return_true' );
}}}
However, the assets are still loaded everywhere. There's no change in
what's loaded. Full context: the root of the site is a subdomain of the
multi-site, and I'm checking a domain-mapped subsite's frontpage. I've
added a screenshot of what I'm still seeing be loaded.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8842>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list