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

Theme star rating different between theme view and review forum view. #147

Open
StevenDufresne opened this issue Jun 27, 2024 · 1 comment

Comments

@StevenDufresne
Copy link
Contributor

Describe the bug
I've opened this here but the fix may be in the support forums. We round the ratings differently between the theme and the forums.

Looking at https://wordpress.org/themes/twentytwentyfour/:

When viewing the ratings in the theme, the rating is 4/5 stars.
When viewing the ratings in the review forums, the rating is 3.8/5 stars.

Screenshots

Theme Forums
Screenshot 2024-06-27 at 10 50 48 AM Screenshot 2024-06-27 at 10 50 52 AM
@ryelle
Copy link
Collaborator

ryelle commented Jun 27, 2024

The displayed rating on themes rounds to the half- so you get 3.5, 4, 4.5, etc. In this case the 3.8 value is rounded to 4. Which is nice for 3.8, but if it was 3.7 it would round to 3.5; might be less nice for the author.

It looks like this is how it was in the old theme too:
Screenshot 2024-06-27 at 9 49 13 AM

That said, I think the value should be the "real" unrounded value (like support forums). A quick scan of ratings (amazon, google, random other sites) shows an unrounded value even though the star-icons are fixed full or half-intervals, so I think that's expected.

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

No branches or pull requests

2 participants