Merge pull request #299 from willgorham/master

Fix deprecated product accessor for WC 3.0 - Thx @willgorham
This commit is contained in:
Holger 2017-05-02 16:16:30 +02:00 committed by GitHub
commit c540c34bbd
1 changed files with 1 additions and 1 deletions

View File

@ -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() )
),