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

Commit 85336d9

Browse files
author
Paul Von Schrottky
authored
Merge pull request #578 from wordpress-mobile/fix/plan-flag
Fix a regression in plan flag logic
2 parents dbc38b4 + 6eac316 commit 85336d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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 = '6.1.0-beta.2'
5+
s.version = '6.1.0-beta.3'
66

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

WordPressKit/RemoteBlog.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import NSObject_SafeExpectations
7272
self.options = RemoteBlogOptionsHelper.mapOptions(fromResponse: json)
7373
self.planID = json.number(forKeyPath: "plan.product_id")
7474
self.planTitle = json.string(forKeyPath: "plan.product_name_short")
75-
self.hasPaidPlan = json.number(forKeyPath: "plan.is_free")?.boolValue ?? false
75+
self.hasPaidPlan = !(json.number(forKeyPath: "plan.is_free")?.boolValue ?? true)
7676
self.quotaSpaceAllowed = json.number(forKeyPath: "quota.space_allowed")
7777
self.quotaSpaceUsed = json.number(forKeyPath: "quota.space_used")
7878
}

0 commit comments

Comments
 (0)