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

Commit cc3dac1

Browse files
authored
Merge release 8.7.1 (#635)
2 parents 3ad1385 + 5a048f0 commit cc3dac1

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,23 @@ _None._
3838

3939
### New Features
4040

41-
- `RemotePostCategory.parent` is set to zero when API returns `"parent": null` [#630]
41+
_None._
4242

4343
### Bug Fixes
4444

45-
- Fixed a breaking changes introduced in 8.7.0 [#632]
45+
_None._
4646

4747
### Internal Changes
4848

4949
_None._
5050

51+
## 8.7.1
52+
53+
### Bug Fixes
54+
55+
- `RemotePostCategory.parent` is set to zero when API returns `"parent": null` [#630]
56+
- Fixed a breaking changes introduced in 8.7.0 [#632, #633]
57+
5158
## 8.7.0
5259

5360
- Update `WordPressComOAuthClient` to add support to webauthn endpoints [#629]

WordPressKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'WordPressKit'
5-
s.version = '8.7.0'
5+
s.version = '8.7.1'
66

77
s.summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.'
88
s.description = <<-DESC

WordPressKit/WordPressComOAuthClient.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public final class WordPressComOAuthClient: NSObject {
124124
/// - multifactorCode: Multifactor Authentication One-Time-Password. If not needed, can be nil
125125
/// - success: block to be called if authentication was successful. The OAuth2 token is passed as a parameter.
126126
/// - failure: block to be called if authentication failed. The error object is passed as a parameter.
127+
@available(*, deprecated, message: "Here for legacy compatiblity. Use the verions with explicit `needsMultifactor` parameter.")
127128
@objc public func authenticateWithUsername(_ username: String,
128129
password: String,
129130
multifactorCode: String?,
@@ -152,7 +153,7 @@ public final class WordPressComOAuthClient: NSObject {
152153
@objc public func authenticateWithUsername(_ username: String,
153154
password: String,
154155
multifactorCode: String?,
155-
needsMultifactor: ((_ userID: Int, _ nonceInfo: SocialLogin2FANonceInfo) -> Void)? = .none,
156+
needsMultifactor: ((_ userID: Int, _ nonceInfo: SocialLogin2FANonceInfo) -> Void)?,
156157
success: @escaping (_ authToken: String?) -> Void,
157158
failure: @escaping (_ error: NSError) -> Void ) {
158159
var parameters: [String: AnyObject] = [

0 commit comments

Comments
 (0)