Add the shortcode_atts call to WC_Shortcode_Cart::output
This commit is contained in:
parent
6d21f2170e
commit
d07d704187
|
@ -53,13 +53,17 @@ class WC_Shortcode_Cart {
|
|||
|
||||
/**
|
||||
* Output the cart shortcode.
|
||||
*
|
||||
* @param array $atts
|
||||
*/
|
||||
public static function output() {
|
||||
public static function output( $atts ) {
|
||||
// Constants
|
||||
if ( ! defined( 'WOOCOMMERCE_CART' ) ) {
|
||||
define( 'WOOCOMMERCE_CART', true );
|
||||
}
|
||||
|
||||
$atts = shortcode_atts( array(), $atts, 'woocommerce_cart' );
|
||||
|
||||
// Update Shipping
|
||||
if ( ! empty( $_POST['calc_shipping'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'woocommerce-cart' ) ) {
|
||||
self::calculate_shipping();
|
||||
|
|
Loading…
Reference in New Issue