Skip to content

Conversation

@khosroblog
Copy link
Contributor

get_review_count_for_product return all comments count not only 'review' types !!!

All Submissions:

Changes proposed in this Pull Request:

I created a plugin for rate to products and save data in wp_comments table as => comment_type='rating',
so when users rated to products, get_review_count_for_product function return incorrect result and result is include all comment_types not only 'review' types.

Changelog entry

get_review_count_for_product return all comments count not only 'review' types !!!

Get review count for product from wp_comments db, where comment type is `review` not all.
Copy link
Contributor

@rrennick rrennick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khosroblog Thanks for the contribution.

@jonathansadowski jonathansadowski added this to the 4.5.0 milestone Aug 14, 2020
@jonathansadowski jonathansadowski merged commit 4fd7f55 into woocommerce:master Aug 14, 2020
@woocommercebot woocommercebot added release: add changelog Mark all PRs that have not had their changelog entries added. [auto] release: add testing instructions PRs that have not had testing instructions added to the wiki. [auto] labels Aug 14, 2020
@juliaamosova juliaamosova removed the release: add testing instructions PRs that have not had testing instructions added to the wiki. [auto] label Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: add changelog Mark all PRs that have not had their changelog entries added. [auto]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants