Page 1 of 1

pre_user_query action is way too greedy!

PostPosted: May 1st, 2011, 4:05 pm
by lewayotte
The function c_ws_plugin__s2member_users_list::users_list_query called by the pre_user_query action is way too greedy, it doesn't consider other plugins that might already been modifying the user query. It just overwrites everything and expects others to play nicely.

Attached is my suggested improvement.

Lew

Re: pre_user_query action is way too greedy!

PostPosted: May 3rd, 2011, 9:28 pm
by Jason Caldwell
Thank you VERY much.
I'm going to consider this in the next release.
@TODO: Merge changes proposed here into the pre_user_query Hook.