Skip to content

Commit

Permalink
Conform returned error messages
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Claudio Marangon committed Jun 12, 2018
1 parent a03e84d commit e344763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wc-user-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function wc_create_new_customer( $email, $username = '', $password = '' ) {
$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&#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 );
Expand Down

0 comments on commit e344763

Please sign in to comment.