From 7cb40fa6cef4e1c4d6e95fc5bff65e66db86ba4e Mon Sep 17 00:00:00 2001 From: Tiago Noronha Date: Fri, 18 Aug 2017 19:09:44 +0100 Subject: [PATCH] Associative arrays keys should start on a new line. --- inc/woocommerce.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/inc/woocommerce.php b/inc/woocommerce.php index 4d8bc3c..7d2d85b 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -93,7 +93,13 @@ add_filter( 'loop_shop_columns', '_s_woocommerce_loop_columns' ); * @return array $args related products args. */ function _s_woocommerce_related_products_args( $args ) { - $args = wp_parse_args( array( 'posts_per_page' => 3, 'columns' => 3 ), $args ); + $defaults = array( + 'posts_per_page' => 3, + 'columns' => 3 + ); + + $args = wp_parse_args( $defaults, $args ); + return $args; } add_filter( 'woocommerce_output_related_products_args', '_s_woocommerce_related_products_args' ); @@ -230,7 +236,13 @@ if ( ! function_exists( '_s_woocommerce_header_cart' ) ) {
  • - '' ) ); ?> + '' + ); + + the_widget( 'WC_Widget_Cart', $instance ); + ?>