Skip to content

Commit

Permalink
Merge branch 'develop' into rnmobile/refactor/gallery-as-nested-image…
Browse files Browse the repository at this point in the history
…-blocks-editor-settings_v2

# Conflicts:
#	WordPressKit.podspec
  • Loading branch information
Antonis Lilis committed Sep 2, 2021
2 parents 9131068 + b622fd0 commit fb9d7dc
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ steps:
#################
# Validate Podspec
#################
- label: "🔬 Validating Podspec"
- label: "🔬 Validate Podspec"
key: "validate"
command: "validate_podspec"
env: *common_env
Expand Down
34 changes: 0 additions & 34 deletions .circleci/config.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# WordPressKit for iOS

[![CircleCI](https://circleci.com/gh/wordpress-mobile/WordPressKit-iOS.svg?style=svg)](https://circleci.com/gh/wordpress-mobile/WordPressKit-iOS)

## About

WordPressKit offers a clean and simple WordPress.com and WordPress.org API.
Expand Down
3 changes: 2 additions & 1 deletion WordPressKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

Pod::Spec.new do |s|
s.name = 'WordPressKit'
s.version = '4.41.0-beta.2'
s.version = '4.41.0-beta.3'

s.summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.'
s.description = <<-DESC
This framework encapsulates all of the networking calls and entity parsers required to interact
Expand Down
2 changes: 1 addition & 1 deletion WordPressKit/AccountSettingsRemote.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public class AccountSettingsRemote: ServiceRemoteWordPressComREST {

wordPressComRestApi.POST(path, parameters: nil) { _, _ in
success()
} failure: { error, response in
} failure: { error, _ in
failure(error)
}
}
Expand Down
10 changes: 7 additions & 3 deletions WordPressKit/CommentServiceRemoteREST.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,13 @@ - (void)updateComment:(RemoteComment *)comment
withVersion:ServiceRemoteWordPressComRESTApiVersion_1_1];

NSDictionary *parameters = @{
@"content": comment.content,
@"context": @"edit",
};
@"content": comment.content,
@"author": comment.author,
@"author_email": comment.authorEmail,
@"author_url": comment.authorUrl,
@"context": @"edit",
};

[self.wordPressComRestApi POST:requestUrl
parameters:parameters
success:^(id responseObject, NSHTTPURLResponse *httpResponse) {
Expand Down
12 changes: 11 additions & 1 deletion WordPressKit/CommentServiceRemoteXMLRPC.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,21 @@ - (void)updateComment:(RemoteComment *)comment
{
NSParameterAssert(comment.commentID != nil);
NSNumber *commentID = comment.commentID;

NSDictionary *commentDictionary = @{
@"content": comment.content,
@"author": comment.author,
@"author_email": comment.authorEmail,
@"author_url": comment.authorUrl,
};

NSArray *extraParameters = @[
comment.commentID,
@{@"content": comment.content},
commentDictionary,
];

NSArray *parameters = [self XMLRPCArgumentsWithExtra:extraParameters];

[self.api callMethod:@"wp.editComment"
parameters:parameters
success:^(id responseObject, NSHTTPURLResponse *httpResponse) {
Expand Down
2 changes: 1 addition & 1 deletion WordPressKitTests/AccountSettingsRemoteTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class AccountSettingsRemoteTests: RemoteTestCase, RESTTestable {
remote.closeAccount {
XCTFail("Closing account unexpectedly succeded")
expectation.fulfill()
} failure: { error in
} failure: { _ in
expectation.fulfill()
}

Expand Down

0 comments on commit fb9d7dc

Please sign in to comment.