Skip to content

Commit

Permalink
Fix an issue with categories order affecting diffing
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Apr 16, 2024
1 parent fe3266f commit 24c835e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WordPressKit/Models/RemotePostParameters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ extension RemotePostCreateParameters {
if previous.tags != tags {
changes.tags = tags
}
if previous.categoryIDs != categoryIDs {
if Set(previous.categoryIDs) != Set(categoryIDs) {
changes.categoryIDs = categoryIDs
}
if previous.metadata != metadata {
Expand Down

0 comments on commit 24c835e

Please sign in to comment.