Skip to content

Commit

Permalink
Bug Fix: Notice: id was called incorrectly. Product properties should…
Browse files Browse the repository at this point in the history
… not be accessed directly.
  • Loading branch information
vestaxpdx committed Jun 16, 2017
1 parent 71471a1 commit def454b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/includes/traits/Plugin/WcpWooCommerceUtils.php
Expand Up @@ -24,7 +24,7 @@ public function autoClearPostCacheOnWooCommerceSetStock($product)
$done = true; // Flag as having been done.

if (class_exists('\\WooCommerce')) {
$counter += $this->autoClearPostCache($product->id);
$counter += $this->autoClearPostCache($product->get_id());
}
}

Expand Down

0 comments on commit def454b

Please sign in to comment.