Apparent bug when running exclude operations
-
Hi there, I believe I’ve found a bug:
I’ve set up a list view using your “Exclude” field to exclude all users that have a meta_value of ‘Y’ for a given meta_key. But what actually happens is that the list excludes all users where meta_key == ‘Y’, and also all users where meta_key is undefined – that is, users who do not have an associated record for that meta_key in the wp_usermeta table.I’ve tried using exclusion on several other fields, and it behaves the same way.
For now, I’m working around this by writing a hook that sets a default value for this field everytime a user is created, and it seems to be working fine. However, I’ve got almost 5000 users, so I’d rather not have all those empty meta keys slowing down the database if I don’t need them.
Love to hear your thoughts,
thanks!
The topic ‘Apparent bug when running exclude operations’ is closed to new replies.