See if this error is breaking e2e

This commit is contained in:
Mike Jolley 2018-05-23 11:31:25 +01:00
parent 65bbcfee96
commit 3de6d71fc7
1 changed files with 0 additions and 4 deletions

View File

@ -736,10 +736,6 @@ class WC_Checkout {
$this->validate_posted_data( $data, $errors );
$this->check_cart_items();
if ( empty( $data['woocommerce_checkout_update_totals'] ) && empty( $data['terms'] ) && ! empty( $_POST['terms-field'] ) ) { // WPCS: input var ok, CSRF ok.
$errors->add( 'terms', __( 'Please read and accept the terms and conditions to proceed with your order.', 'woocommerce' ) );
}
if ( WC()->cart->needs_shipping() ) {
$shipping_country = WC()->customer->get_shipping_country();