Add the shortcode_atts call to WC_Shortcode_Cart::output

This commit is contained in:
Justin Sternberg 2017-01-03 13:17:04 -05:00
parent 6d21f2170e
commit d07d704187
1 changed files with 5 additions and 1 deletions

View File

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