Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: "At least one of ratingCount or reviewCount is required." #65

Merged
merged 1 commit into from Mar 11, 2019
Merged

Fix: "At least one of ratingCount or reviewCount is required." #65

merged 1 commit into from Mar 11, 2019

Conversation

jmastr
Copy link
Contributor

@jmastr jmastr commented Mar 10, 2019

Initially if you enable the plugin with Google Rich Snippet support and
you don't have any reviews yet the markup is not valid. The
AggregateRating object is created, but it has two missing required
fields:

  • Field ratingValue may not be empty.
  • At least one of ratingCount or reviewCount is required.

If we have no score yet, we do not create the AggregateRating object at
all.

Closes #64

Initially if you enable the plugin with Google Rich Snippet support and
you don't have any reviews yet the markup is not valid. The
AggregateRating object is created, but it has two missing required
fields:

- Field ratingValue may not be empty.
- At least one of ratingCount or reviewCount is required.

If we have no score yet, we do not create the AggregateRating object at
all.

Closes #64
@kamalkhan kamalkhan merged commit 8d4a5b8 into surveywp:master Mar 11, 2019
@kamalkhan
Copy link
Contributor

Thank you.

kamalkhan added a commit that referenced this pull request Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants