Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 0900789

Browse files
committed
Fix encoding for status (XMLRPC)
1 parent 9ff448f commit 0900789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WordPressKit/Models/RemotePostParameters.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ struct RemotePostUpdateParametersXMLRPCEncoder: Encodable {
393393
func encode(to encoder: Encoder) throws {
394394
var container = encoder.container(keyedBy: RemotePostXMLRPCCodingKeys.self)
395395
try container.encodeIfPresent(parameters.ifNotModifiedSince, forKey: .ifNotModifiedSince)
396-
try container.encodeStringIfPresent(parameters.status, forKey: .postStatus)
396+
try container.encodeIfPresent(parameters.status, forKey: .postStatus)
397397
try container.encodeIfPresent(parameters.date, forKey: .date)
398398
try container.encodeIfPresent(parameters.authorID, forKey: .authorID)
399399
try container.encodeStringIfPresent(parameters.title, forKey: .title)

0 commit comments

Comments
 (0)