Fix suggestion for avoid js loading in multisite
-
Hi.
I noticed that in multisite the plugin loads it’s *.js files also in the sub-blogs pages.
Quick fix is:
File /includes/main-class, Replace lines 196 -197 with the following:if (is_buddypress() ) { add_action( 'bp_enqueue_scripts', array( $this, 'assets' ) ); add_action( 'wp_footer', array( $this, 'print_edit_activity_template' ) ); }
The above if statement will load the files only for buddypress pages.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fix suggestion for avoid js loading in multisite’ is closed to new replies.