Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "WordPressKit",
url: "https://github.com/user-attachments/files/19658656/WordPressKit.zip",
checksum: "9172f9b9906e64efe1f3d79f074ad317f1d40c6ce1ec394259b0f99fea6fe8ee"
url: "https://github.com/user-attachments/files/19732825/WordPressKit.zip",
checksum: "0ecd8b19cd00a4ef363ab6e826f92166c1efa4693db8f3218533510a3f951dbb"
),
]
)
1 change: 1 addition & 0 deletions Sources/WordPressKit/Models/RemotePost.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ extern NSString * const PostStatusDeleted;
@property (nonatomic, strong) NSString *postThumbnailPath;
@property (nonatomic, strong) NSString *type;
@property (nonatomic, strong) NSString *format;
@property (nonatomic, assign) NSInteger order;

/**
* A snapshot of the post at the last autosave.
Expand Down
1 change: 1 addition & 0 deletions Sources/WordPressKit/Services/PostServiceRemoteREST.m
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ + (RemotePost *)remotePostFromJSONDictionary:(NSDictionary *)jsonPost {
post.postThumbnailPath = [postThumbnail stringForKeyPath:@"URL"];
post.type = jsonPost[@"type"];
post.format = jsonPost[@"format"];
post.order = [jsonPost numberForKey:@"menu_order"].integerValue;

post.commentCount = [jsonPost numberForKeyPath:@"discussion.comment_count"] ?: @0;
post.likeCount = [jsonPost numberForKeyPath:@"like_count"] ?: @0;
Expand Down
1 change: 1 addition & 0 deletions Sources/WordPressKit/Services/PostServiceRemoteXMLRPC.m
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ + (RemotePost *)remotePostFromXMLRPCDictionary:(NSDictionary *)xmlrpcDictionary
post.postThumbnailPath = [thumbnailDict stringForKey:@"link"];
post.type = xmlrpcDictionary[@"post_type"];
post.format = xmlrpcDictionary[@"post_format"];
post.order = [xmlrpcDictionary numberForKey:@"menu_order"].integerValue;

post.metadata = xmlrpcDictionary[@"custom_fields"];

Expand Down
Loading