Fix PHPCS errors automatically using PHPCBF
This commit is contained in:
parent
eefab9d672
commit
23ebeceb0e
|
@ -27,11 +27,15 @@ do_action( 'woocommerce_before_add_to_cart_form' ); ?>
|
|||
<?php
|
||||
$quantites_required = false;
|
||||
$previous_post = $post;
|
||||
$grouped_product_columns = apply_filters( 'woocommerce_grouped_product_columns', array(
|
||||
'quantity',
|
||||
'label',
|
||||
'price',
|
||||
), $product );
|
||||
$grouped_product_columns = apply_filters(
|
||||
'woocommerce_grouped_product_columns',
|
||||
array(
|
||||
'quantity',
|
||||
'label',
|
||||
'price',
|
||||
),
|
||||
$product
|
||||
);
|
||||
|
||||
do_action( 'woocommerce_grouped_product_list_before', $grouped_product_columns, $quantites_required, $product );
|
||||
|
||||
|
@ -58,12 +62,14 @@ do_action( 'woocommerce_before_add_to_cart_form' ); ?>
|
|||
} else {
|
||||
do_action( 'woocommerce_before_add_to_cart_quantity' );
|
||||
|
||||
woocommerce_quantity_input( array(
|
||||
'input_name' => 'quantity[' . $grouped_product_child->get_id() . ']',
|
||||
'input_value' => isset( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ? wc_stock_amount( wc_clean( wp_unslash( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ) ) : 0, // WPCS: CSRF ok, input var okay, sanitization ok.
|
||||
'min_value' => apply_filters( 'woocommerce_quantity_input_min', 0, $grouped_product_child ),
|
||||
'max_value' => apply_filters( 'woocommerce_quantity_input_max', $grouped_product_child->get_max_purchase_quantity(), $grouped_product_child ),
|
||||
) );
|
||||
woocommerce_quantity_input(
|
||||
array(
|
||||
'input_name' => 'quantity[' . $grouped_product_child->get_id() . ']',
|
||||
'input_value' => isset( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ? wc_stock_amount( wc_clean( wp_unslash( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ) ) : 0, // WPCS: CSRF ok, input var okay, sanitization ok.
|
||||
'min_value' => apply_filters( 'woocommerce_quantity_input_min', 0, $grouped_product_child ),
|
||||
'max_value' => apply_filters( 'woocommerce_quantity_input_max', $grouped_product_child->get_max_purchase_quantity(), $grouped_product_child ),
|
||||
)
|
||||
);
|
||||
|
||||
do_action( 'woocommerce_after_add_to_cart_quantity' );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue