-
Notifications
You must be signed in to change notification settings - Fork 813
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
Add terms to return value in existing Post backup endpoint #12696
Conversation
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: July 2, 2019. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
I tested from my VaultPress sandbox also using wpcom patch D29457 D29460 and saw the new terms
field:
"terms": [
{
"term_taxonomy_id": "2",
"term_order": "0"
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable. Merge when ready.
When fetching a post object backup, include linked terms via the term_relationships table.
Changes proposed in this Pull Request:
This PR adds a
terms
key to the result of the Post Backup API endpoint, which includes a summary of the linked term relationships associated with the requested Post Object.Reference: pa0RFL-jR-p2
Testing instructions:
Execute the post backup endpoint via the wpcom API, and verify that the resultant output includes associated term relationships.
See pa0RFL-jR-p2 for more details.
Proposed changelog entry for your changes: