WP-3069: Pass the entity to the allowed values callback, and do not cache the results.