Add hook for update profile, props Cimmo, fixes #9302
git-svn-id: http://svn.automattic.com/wordpress/trunk@11096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4e975cf400
commit
71086625a6
wp-admin/includes
|
@ -174,6 +174,8 @@ function edit_user( $user_id = 0 ) {
|
|||
$errors->add( 'email_exists', __('<strong>ERROR</strong>: This email is already registered, please choose another one.'), array( 'form-field' => 'email' ) );
|
||||
}
|
||||
|
||||
do_action('user_profile_update_errors', $errors);
|
||||
|
||||
if ( $errors->get_error_codes() )
|
||||
return $errors;
|
||||
|
||||
|
|
Loading…
Reference in New Issue