Rating API is missing ratings by comments
-
Hi ??
The rating API is missing the ratings made by comments.
When I go to
example.com/wp-recipe-maker/v1/rating/recipe/123
or
WPRM_Rating_Database::get_ratings(['where' => 'recipe_id = ' . $recipe_id])
it only returns the ratings that are not made by comments.
I believe the problem is because the ratings left by comments are missing the
wp_wprm_ratings.recipe_id
value in the database.Update
I also noticed that in WP-Admin under WP Recipe Maker->Manage->Recipes, the total number of Ratings is incorrect. It says “2 comments” + “9 votes”, when in reality it should be “2 comments” + “11 votes”… again, not counting the comment votes.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Rating API is missing ratings by comments’ is closed to new replies.