From 71086625a628b9b5d5a56a9f3b561ce811afdd64 Mon Sep 17 00:00:00 2001 From: azaozz Date: Mon, 27 Apr 2009 11:18:04 +0000 Subject: [PATCH] Add hook for update profile, props Cimmo, fixes #9302 git-svn-id: http://svn.automattic.com/wordpress/trunk@11096 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/user.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index a56a2778a..e64f78d57 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -174,6 +174,8 @@ function edit_user( $user_id = 0 ) { $errors->add( 'email_exists', __('ERROR: 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;