diff --git a/includes/wc-user-functions.php b/includes/wc-user-functions.php index d513939bd72..a302ce008bf 100644 --- a/includes/wc-user-functions.php +++ b/includes/wc-user-functions.php @@ -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', '' . __( 'Error:', 'woocommerce' ) . ' ' . __( '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 );