Merge pull request #2197 from kloon/master

Add password changed message
This commit is contained in:
Coen Jacobs 2013-01-10 02:21:23 -08:00
commit 91a8cfcb8c
1 changed files with 4 additions and 0 deletions

View File

@ -1568,6 +1568,8 @@ function woocommerce_save_password() {
wp_update_user( array ('ID' => $user_id, 'user_pass' => esc_attr( $_POST['password_1'] ) ) ) ;
$woocommerce->add_message( __( 'Password changed successfully.', 'woocommerce' ) );
do_action( 'woocommerce_customer_change_password', $user_id );
wp_safe_redirect( get_permalink( woocommerce_get_page_id('myaccount') ) );
@ -1642,6 +1644,8 @@ function woocommerce_save_address() {
update_user_meta( $user_id, $key, $_POST[$key] );
endforeach;
$woocommerce->add_message( __( 'Address changed successfully.', 'woocommerce' ) );
do_action( 'woocommerce_customer_save_address', $user_id );
wp_safe_redirect( get_permalink( woocommerce_get_page_id('myaccount') ) );