Merge pull request #299 from willgorham/master
Fix deprecated product accessor for WC 3.0 - Thx @willgorham
This commit is contained in:
commit
c540c34bbd
|
@ -26,7 +26,7 @@ echo apply_filters( 'woocommerce_loop_add_to_cart_link',
|
|||
sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="add_to_cart_button ajax_add_to_cart btn btn-outline-primary btn-block">%s</a>',
|
||||
esc_url( $product->add_to_cart_url() ),
|
||||
esc_attr( isset( $quantity ) ? $quantity : 1 ),
|
||||
esc_attr( $product->id ),
|
||||
esc_attr( $product->get_id() ),
|
||||
esc_attr( $product->get_sku() ),
|
||||
esc_html( $product->add_to_cart_text() )
|
||||
),
|
||||
|
|
Reference in New Issue