Home > BP Profile Search > Patch for BuddyPress 1.2.8

Patch for BuddyPress 1.2.8

March 1st, 2011 andrea

An important patch to BP Profile Search suggested by Gopherboy:

If you update WordPress to 3.1 and Buddypress to 1.2.8 and use multisite this will no longer work because Buddypress uses 3.1′s new network_admin dashboard. A quick change to line 30 of bps-main.php will fix this problem.

Find the following line:

add_action ('admin_menu', 'bps_add_pages', 20);

And replace it with this:

#add_action ('admin_menu', 'bps_add_pages', 20);
add_action (is_multisite()? 'network_admin_menu': 'admin_menu', 'bps_add_pages', 20);

This will allow the plugin to work with multisite enabled.

Categories: BP Profile Search
Comments are closed.