[wp-trac] [WordPress Trac] #27317: Update wp_insert_user function to return 'pre_user_login' filter WP_Errors

WordPress Trac noreply at wordpress.org
Fri Mar 7 16:12:54 UTC 2014


#27317: Update wp_insert_user function to return 'pre_user_login' filter WP_Errors
-------------------------------+------------------------------
 Reporter:  crazycoolcam       |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Users              |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by crazycoolcam):

 Thanks for asking Daniel,

 The main use for this would be to check against a list of usernames I
 would like to ban/block, such as: 'admin', 'root', 'test', 'user',
 'guest', etc. and not allow them to register at all.

 Some of my sites run buddypress, which uses wp_insert_user and not the
 login/?action=register action, and others may have users who have
 permission to add users but who I would not want adding users with these
 names.

 Does this make sense, and/or am I missing a really plain method of
 rejecting usernames for processes that don't use login/?action=register
 error checks?

 Thanks for your help.
 ~Cam

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27317#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list