Hi - so I made several custom roles, with several custom capabilities. One of the roles does NOT have the capability "is_hidden", while other custom roles do. However, when I run the following code, "hi" is returned for each user with a custom role, whether that role has the capability "is_hidden" or not:
I've checked the database directly to make sure the users have the correct roles. I've checked the wp_user_roles entry in the wp_options table, to make sure the capabilities are correct for each role. And I've printed out the user object, to be sure that the user's object has the correct role. All check out just fine.
What could I be doing wrong here? It doesn't look like I'm caching anything, and besides, this has been a problem for a week. Any ideas?
Thanks for any help or ideas you can give. (: