[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 14:00:19 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: 3.8.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Currently, if I want to filter 'pre_user_login' and return a WP Error --
blocking people from using certain usernames or characters, there is no
check for this and it returns the empty_user_login error instead.
This patch adds a quick check to $user_login variable to see if it is a
WP-Error after applying the 'pre_user_login' filter, it returns the error
instead of continuing processing the function.
~Cam
P.S. Apologies if I missed something in this patch/enhancement request. It
is my first time adding a patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27317>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list