Conform returned error messages
The <strong>Error:</strong> should be removed because: - the other errors in this function don't provide it either - the process_registration() function in class-wc-form-handler.php also adds this string so it's added twice
This commit is contained in:
parent
a03e84df0b
commit
e3447635ae
|
@ -106,7 +106,7 @@ if ( ! function_exists( 'wc_create_new_customer' ) ) {
|
||||||
$customer_id = wp_insert_user( $new_customer_data );
|
$customer_id = wp_insert_user( $new_customer_data );
|
||||||
|
|
||||||
if ( is_wp_error( $customer_id ) ) {
|
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 );
|
do_action( 'woocommerce_created_customer', $customer_id, $new_customer_data, $password_generated );
|
||||||
|
|
Loading…
Reference in New Issue