Cou have changed this to this in 1.3.3 update:
1.3.3
} else if ($asset_type == "sale-products") {
// Get products on sale
$product_ids_on_sale = woocommerce_get_product_ids_on_sale();
$meta_query = array();
$meta_query[] = $woocommerce->query->visibility_meta_query();
$meta_query[] = $woocommerce->query->stock_status_meta_query();
$args = array(
'no_found_rows' => 1,
'post_status' => 'publish',
'post_type' => 'product',
'orderby' => 'date',
'order' => 'ASC',
'meta_query' => $meta_query,
'post__in' => $product_ids_on_sale
);
} else {
$args = array(
'post_type' => 'product',
'post_status' => 'publish',
'product_cat' => $category,
'ignore_sticky_posts' => 1,
'posts_per_page' => $item_count,
'meta_key' => 'total_sales',
'orderby' => 'meta_value'
);
}
1.3.2
} else if ($asset_type == "sale-products") {
$args = array(
'post_type' => 'product',
'post_status' => 'publish',
'product_cat' => $category,
'ignore_sticky_posts' => 1,
'posts_per_page' => $item_count,
'meta_query' => array(
array(
'key' => '_sale_price',
'value' => 0,
'compare' => '>',
'type' => 'NUMERIC'
),
array(
'key' => '_visibility',
'value' => array('catalog', 'visible'),
'compare' => 'IN'
),
)
);
} else {
$args = array(
'post_type' => 'product',
'post_status' => 'publish',
'product_cat' => $category,
'ignore_sticky_posts' => 1,
'posts_per_page' => $item_count,
'meta_key' => 'total_sales',
'orderby' => 'meta_value'
);
}