Skip to content
Permalink
Browse files

Merge branch 'pr/23186'

  • Loading branch information...
mikejolley committed Apr 16, 2019
2 parents 068a2d9 + 5f0eb2d commit a4f244635070e72cb78318640f5c57375f6cee08
Showing with 3 additions and 10 deletions.
  1. +3 −10 templates/global/quantity-input.php
@@ -25,13 +25,11 @@
<?php
} else {
/* translators: %s: Quantity. */
$labelledby = ! empty( $args['product_name'] ) ? sprintf( __( '%s quantity', 'woocommerce' ), wp_strip_all_tags( $args['product_name'] ) ) : '';
$label = ! empty( $args['product_name'] ) ? sprintf( __( '%s quantity', 'woocommerce' ), wp_strip_all_tags( $args['product_name'] ) ) : __( 'Quantity', 'woocommerce' );
?>
<div class="quantity">

<?php do_action( 'woocommerce_before_quantity_input_field' ); ?>

<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></label>
<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo esc_attr( $label ); ?></label>
<input
type="number"
id="<?php echo esc_attr( $input_id ); ?>"
@@ -43,13 +41,8 @@ class="<?php echo esc_attr( join( ' ', (array) $classes ) ); ?>"
value="<?php echo esc_attr( $input_value ); ?>"
title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'woocommerce' ); ?>"
size="4"
inputmode="<?php echo esc_attr( $inputmode ); ?>"
<?php if ( ! empty( $labelledby ) ) { ?>
aria-labelledby="<?php echo esc_attr( $labelledby ); ?>" />
<?php } ?>

inputmode="<?php echo esc_attr( $inputmode ); ?>" />
<?php do_action( 'woocommerce_after_quantity_input_field' ); ?>

</div>
<?php
}

0 comments on commit a4f2446

Please sign in to comment.
You can’t perform that action at this time.