From 35b07193a61a36e2e4e81f98d4e5ca55ac930508 Mon Sep 17 00:00:00 2001 From: Patricia Hillebrandt Date: Wed, 11 Oct 2023 09:01:21 +0200 Subject: [PATCH] remove unnecessary calls to post/product images. --- src/Patterns/ProductUpdater.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Patterns/ProductUpdater.php b/src/Patterns/ProductUpdater.php index 568ae72bce7..f7c8c057163 100644 --- a/src/Patterns/ProductUpdater.php +++ b/src/Patterns/ProductUpdater.php @@ -216,9 +216,6 @@ public function update_product_content( $product, $ai_generated_product_content require_once ABSPATH . 'wp-admin/includes/file.php'; require_once ABSPATH . 'wp-admin/includes/image.php'; - $product->get_image_id(); - the_post_thumbnail_url(); - $product_image_id = media_sideload_image( $ai_generated_product_content['image']['src'], $product->get_id(), $ai_generated_product_content['image']['alt'], 'id' ); if ( is_wp_error( $product_image_id ) ) {