Skip to content

Commit

Permalink
Minor PHPCS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeatorres committed May 12, 2023
1 parent 99b5c7e commit 70177d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -1941,10 +1941,10 @@ public function add_to_cart_aria_describedby() {
/**
* Filter the aria-describedby description for the add to cart button.
*
* @since x.x.x
* @since 7.8.0
*
* @param string $var aria-describedby description.
* @param WC_Product $this object.
* @param string $var Text for the 'aria-describedby' attribute.
* @param WC_Product $this Product object.
*/
return apply_filters( 'woocommerce_product_add_to_cart_aria_describedby', '', $this );
}
Expand Down
1 change: 1 addition & 0 deletions plugins/woocommerce/includes/class-wc-product-variable.php
Expand Up @@ -57,6 +57,7 @@ public function get_type() {
* @return string
*/
public function add_to_cart_aria_describedby() {
/** This filter is documented in includes/abstracts/abstract-wc-product.php. */
return apply_filters( 'woocommerce_product_add_to_cart_aria_describedby', $this->is_purchasable() ? __( 'This product has multiple variants. The options may be chosen on the product page', 'woocommerce' ) : '', $this );
}

Expand Down

0 comments on commit 70177d1

Please sign in to comment.