From fe6394870eca25937095651a74c32d9cab36da16 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 5 Jun 2018 20:11:55 -0600 Subject: [PATCH] global/quantity-input.php - escape and strip tags in the quantity template Reference: 7acb475c59c0666f21ffe24eb3558df857237dc1 ffcfbd2108387e4e7034e52a4a9ae1fc0551dac3 --- woocommerce/global/quantity-input.php | 30 +++++++++++++++++++-------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/woocommerce/global/quantity-input.php b/woocommerce/global/quantity-input.php index 5f5ebd6..f568258 100644 --- a/woocommerce/global/quantity-input.php +++ b/woocommerce/global/quantity-input.php @@ -10,15 +10,12 @@ * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * - * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes - * @package WooCommerce/Templates - * @version 3.3.0 + * @see https://docs.woocommerce.com/document/template-structure/ + * @package WooCommerce/Templates + * @version 3.4.0 */ -if ( ! defined( 'ABSPATH' ) ) { - exit; -} +defined( 'ABSPATH' ) || exit; if ( $max_value && $min_value === $max_value ) { ?> @@ -27,10 +24,25 @@ if ( $max_value && $min_value === $max_value ) {
- - + +