From bf78e8bcd4ce7bc8537ac9171442e9e33683138f Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 18 Oct 2016 19:08:40 +0100 Subject: [PATCH] Use get_upsell_ids --- templates/single-product/related.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/single-product/related.php b/templates/single-product/related.php index 7e20562d6fa..3e746c6e4fa 100644 --- a/templates/single-product/related.php +++ b/templates/single-product/related.php @@ -26,7 +26,7 @@ if ( empty( $product ) || ! $product->exists() ) { return; } -if ( ! $related = wc_get_related_products( $product->get_id(), $posts_per_page, $product->get_upsells() ) ) { +if ( ! $related = wc_get_related_products( $product->get_id(), $posts_per_page, $product->get_upsell_ids() ) ) { return; }