Merge pull request #20504 from cmarangon/master
Conform returned error messages
This commit is contained in:
commit
c5429244b2
|
@ -106,7 +106,7 @@ if ( ! function_exists( 'wc_create_new_customer' ) ) {
|
|||
$customer_id = wp_insert_user( $new_customer_data );
|
||||
|
||||
if ( is_wp_error( $customer_id ) ) {
|
||||
return new WP_Error( 'registration-error', '<strong>' . __( 'Error:', 'woocommerce' ) . '</strong> ' . __( 'Couldn’t register you… please contact us if you continue to have problems.', 'woocommerce' ) );
|
||||
return new WP_Error( 'registration-error', __( 'Couldn’t register you… please contact us if you continue to have problems.', 'woocommerce' ) );
|
||||
}
|
||||
|
||||
do_action( 'woocommerce_created_customer', $customer_id, $new_customer_data, $password_generated );
|
||||
|
|
Loading…
Reference in New Issue