Dynamic Widgets with BuddyPress

The latest version of the BuddyPress default theme and the BuddyPress Template Pack Plugin have a bug by including a JavaScript file all over the WordPress site, including the backend. This is a very common mistake made by theme and plugin authors. Due to this JavaScript, the accordion used in the Dynamic Widgets edit page is not functioning. It freezes when you try to open another section within the page making it impossible to change settings.

I have added a workaround for this by removing the BuddyPress JavaScript from the Dynamic Widgets edit page in development version 1.3.7.9. Also in this version is BuddyPress support included for BuddyPress Components and BuddyPress Groups.

2 Comments to “Dynamic Widgets with BuddyPress”

  • Thanks for pointing the BP bug.
    I’m not a Dynamic Widgets user yet, was just browsing through plugins and arrived here. Great plugin! I’m going to try it out.
    Following your tip, I deregistered the global.js and registered with “if( !is_admin())” condition. Now darshboard should be cleanner.
    I have a question, since now I don’t have global.js loaded on admin page, and you fixed the BP bug in your plugin, If I install Dynamic Widgets, will I run into any problem?

    • No, you won’t run into troubles. Dynamic Widgets checks if one of the bombing JS are registered. If so, then an unregister takes place, otherwise nothing happens. This to prevent errors for people not using BP or -as I expect- the developers of BP fixing the bug in an upcoming version of BP.