I had the same problem but instead of playing around with the code what I did was create a new user, assigned to admin, now I log in with that.. It also works better if you use the same user with SMF because the WP admin won’t get logged into the board and the new user does and I assigned admin priv to that one too.