Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bbSync

This has been scarcely tested, but I think I have a fix for my bug… weird…

in the bb-includes/capabilities.php file there is a function at the bottom that looks like this:

function bb_give_user_default_role( $user ) {
if ( !( is_object($user) && is_a($user, 'BB_User') ) )
return;
$user->set_role('member');
}

I changed it to look like this:

function bb_give_user_default_role( $user ) {
if ( !( is_object($user) && is_a($user, 'wp_User') ) )
return;
$user->set_role('member');
}

Instead of checking to see if the bb_user existed, we wanted to check to see if the wordpress user existed, assuming we merged our user table. For some reason, this seems like a bug in the bbPress code. Shouldn’t that be a variable prefix to begin with?

Skip to toolbar