Closed cherbst closed 8 years ago
Not denying or closing without merge, but curious if you have any specific examples of things going wrong because of this? Probably more for personal education than anything. Otherwise, I'm not seeing anything wrong with this.
I hit a strange bug with this where triggers got logged for the wrong user. For me the bug happend with #58 included when a filter was added to change the user_id. But I think this can also lead to bugs where the 'groups_join_specific_group' filter is changing the current $user_ID.
overriding the global $user_ID changes the global user context and can have unwanted side effects