This repository was archived by the owner on Sep 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ extern NSString * const PostStatusDeleted;
3636@property (nonatomic , strong ) NSString *postThumbnailPath;
3737@property (nonatomic , strong ) NSString *type;
3838@property (nonatomic , strong ) NSString *format;
39+ @property (nonatomic , assign ) NSInteger order;
3940
4041/* *
4142* A snapshot of the post at the last autosave.
Original file line number Diff line number Diff line change @@ -471,6 +471,7 @@ + (RemotePost *)remotePostFromJSONDictionary:(NSDictionary *)jsonPost {
471471 post.postThumbnailPath = [postThumbnail stringForKeyPath: @" URL" ];
472472 post.type = jsonPost[@" type" ];
473473 post.format = jsonPost[@" format" ];
474+ post.order = [jsonPost numberForKey: @" menu_order" ].integerValue ;
474475
475476 post.commentCount = [jsonPost numberForKeyPath: @" discussion.comment_count" ] ?: @0 ;
476477 post.likeCount = [jsonPost numberForKeyPath: @" like_count" ] ?: @0 ;
Original file line number Diff line number Diff line change @@ -322,6 +322,7 @@ + (RemotePost *)remotePostFromXMLRPCDictionary:(NSDictionary *)xmlrpcDictionary
322322 post.postThumbnailPath = [thumbnailDict stringForKey: @" link" ];
323323 post.type = xmlrpcDictionary[@" post_type" ];
324324 post.format = xmlrpcDictionary[@" post_format" ];
325+ post.order = [xmlrpcDictionary numberForKey: @" menu_order" ].integerValue ;
325326
326327 post.metadata = xmlrpcDictionary[@" custom_fields" ];
327328
You can’t perform that action at this time.
0 commit comments