WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 4 months ago

#34805 new defect (bug)

registration_errors filter not called when adding users in admin section

Reported by: mikelopez Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords:
Focuses: Cc:
PR Number:

Description

Hi,

I believe that the registration_errors filter should also be called when adding a user from within the admin area.

As it stands now, it's only called when adding a user via wp-login.php

Cheers!

Mike

Change History (2)

#1 @mikelopez
4 years ago

  • Component changed from General to Users

#2 @swissspidy
4 years ago

  • Version trunk deleted

Adding a user through the admin isn't really a registration, isn't it?

I'd rather add a new filter for $add_user_errors (a WP_Error object) if that is needed.

Note: See TracTickets for help on using tickets.