Updated add to cart aria-label value so it matches the visible text pattern

This commit is contained in:
Joni Erkkilä 2023-11-12 14:01:55 +02:00
parent 70154d5476
commit 4e626ec331
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class WC_Product_Simple extends WC_Product {
*/ */
public function add_to_cart_description() { public function add_to_cart_description() {
/* translators: %s: Product title */ /* translators: %s: Product title */
$text = $this->is_purchasable() && $this->is_in_stock() ? __( 'Add “%s” to your cart', 'woocommerce' ) : __( 'Read more about “%s”', 'woocommerce' ); $text = $this->is_purchasable() && $this->is_in_stock() ? __( 'Add to cart “%s”', 'woocommerce' ) : __( 'Read more about “%s”', 'woocommerce' );
return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( $text, $this->get_name() ), $this ); return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( $text, $this->get_name() ), $this );
} }