Add review to the list of allowed comment types for the /comments/$comment_id#10855
Merged
Add review to the list of allowed comment types for the /comments/$comment_id#10855
Conversation
Contributor
|
D21937-code. (newly created revision) |
Collaborator
This is automated check which relies on Generated by 🚫 dangerJS |
jeherve
previously approved these changes
Dec 6, 2018
Member
jeherve
left a comment
There was a problem hiding this comment.
It works well in my tests. Merging as soon as the tests pass.
Member
|
Cherry-picked to |
…mment_id endpoint
15331e9 to
ace75d2
Compare
jeherve
approved these changes
Dec 6, 2018
Member
jeherve
left a comment
There was a problem hiding this comment.
Merging, now that the tests pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed in this Pull Request:
See p90Yrv-Tz-p2.
Prior to WooCommerce 3.5, product reviews were stored as comments with an empty comment type (''). After 3.5, these are now marked with the review type.
A few things relied on being able to update comment status using the WordPress.com REST API, such as the mobile apps and web notifications.
This PR whitelists the review type to restore that behavior.
This was originally part of #10786 -- but separated out since it is a separate fix for the mobile apps.
Testing instructions:
Proposed changelog entry for your changes:
N/A