wpexpertsio / new-user-approve

WordPress plugin that allows an admin to approve new users
http://wordpress.org/plugins/new-user-approve/
GNU General Public License v2.0
60 stars 45 forks source link

Pending User link doesn't filter to pending users #75

Open d2roth opened 5 years ago

d2roth commented 5 years ago

When receiving the email sent via approve_approval_email to the administrators, the admin_url just goes to the all users page and not to the pending users' filtered view.

I tracked the issue down to the URL that is being created. The URL generated is using the wrong url parameter. It uses new_user_approve_filter=pending instead of new_user_approve_filter-top=pending, notice the "-top".

Here is the line where the parameter is incorrect: https://github.com/picklewagon/new-user-approve/blob/ea615a3634df638a6c53ad5461e39b0e102e09fd/new-user-approve.php#L427

If you want I can create a pull request with this fix.