diff --git a/src/MerchantCenter/MerchantStatuses.php b/src/MerchantCenter/MerchantStatuses.php index 6b08ef815a..a2db6e9d76 100644 --- a/src/MerchantCenter/MerchantStatuses.php +++ b/src/MerchantCenter/MerchantStatuses.php @@ -643,8 +643,8 @@ public function process_product_statuses( $statuses ): void { public function update_product_stats() { $this->mc_statuses = []; // Update each product's mc_status and then update the global statistics. - $this->update_product_mc_statuses(); - $this->update_mc_statuses(); + $this->update_products_meta_with_mc_status(); + $this->update_mc_status_statistics(); } /** @@ -722,7 +722,7 @@ protected function calculate_synced_product_statistics(): array { /** * Calculate the product status statistics and update the transient. */ - protected function update_mc_statuses() { + protected function update_mc_status_statistics() { $product_statistics = $this->calculate_synced_product_statistics(); /** @var ProductRepository $product_repository */ @@ -745,7 +745,7 @@ protected function update_mc_statuses() { /** * Update the Merchant Center status for each product. */ - protected function update_product_mc_statuses() { + protected function update_products_meta_with_mc_status() { // Generate a product_id=>mc_status array. $new_product_statuses = []; foreach ( $this->product_statuses as $types ) {