-
Notifications
You must be signed in to change notification settings - Fork 16
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
Offline Mode: Switch to wp.editPost and wp.newPost #792
Conversation
39a2f3c
to
46ee69c
Compare
a1bfda6
to
24c835e
Compare
@@ -115,7 +115,7 @@ extension RemotePostCreateParameters { | |||
if previous.tags != tags { | |||
changes.tags = tags | |||
} | |||
if previous.categoryIDs != categoryIDs { | |||
if Set(previous.categoryIDs) != Set(categoryIDs) { |
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.
Making sure the order doesn't matter for the comparison.
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 - can you mention these changes in the changelog? Thank you!
Updated changeling with all the recent PRs. |
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.
Thanks for updating the changelog! 🙇♀️
Description
This PR switched to
wp.editPost
andwp.newPost
, which are relatively new endpoints (but are still 10+ years old) with multiple bug fixes, and, most important,if_not_modified_since
support.Can be tested using wordpress-mobile/WordPress-iOS#23022 (comment)
ℹ Please replace the above with a link to the issue this pull request addresses, as well as a summary of the implementation details.
Testing Details
ℹ Please replace this with a clear and concise description of the steps required to validate this pull request.
CHANGELOG.md
if necessary.