update_user_level_from_caps() broken in 3.3.1?
-
I used to be able to extract the maximum user level in 3.2.1 and earlier with:
$user = wp_authenticate($username, $password);
if (!is_wp_error($user)) $user->update_user_level_from_caps();Then I scanned the $user object for “user_level” entries to calculate the actual maximum user level. The changes in 3.3.1 to WP_User break my code. My code has been working fine since WPMU 2.7.
All I really care about is: “Does this user account have permissions to do anything beyond ‘Subscriber’ in a multisite setup?” How do I go about doing this now?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘update_user_level_from_caps() broken in 3.3.1?’ is closed to new replies.