phpcs sniff fixes for wc-template-functions.php

This commit is contained in:
Ron Rennick 2019-01-28 11:25:45 -04:00
parent db2bc48849
commit 475c35ed7a
1 changed files with 1 additions and 1 deletions

View File

@ -1206,7 +1206,7 @@ if ( ! function_exists( 'woocommerce_template_loop_add_to_cart' ) ) {
$args = apply_filters( 'woocommerce_loop_add_to_cart_args', wp_parse_args( $args, $defaults ), $product );
if ( isset( $args['attributes']['aria-label'] ) ) {
$args['attributes']['aria-label'] = strip_tags( $args['attributes']['aria-label'] );
$args['attributes']['aria-label'] = wp_strip_all_tags( $args['attributes']['aria-label'] );
}
wc_get_template( 'loop/add-to-cart.php', $args );