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:
Claudio Marangon 2018-06-12 15:48:59 +02:00
parent a03e84df0b
commit e3447635ae
1 changed files with 1 additions and 1 deletions

View File

@ -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&#8217;t register you&hellip; please contact us if you continue to have problems.', 'woocommerce' ) ); return new WP_Error( 'registration-error', __( 'Couldn&#8217;t register you&hellip; 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 );