diff --git a/WordPressKit.podspec b/WordPressKit.podspec index b4b3d718..7013c0d7 100644 --- a/WordPressKit.podspec +++ b/WordPressKit.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| s.name = 'WordPressKit' - s.version = '6.1.0-beta.2' + s.version = '6.1.0-beta.3' s.summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.' s.description = <<-DESC diff --git a/WordPressKit/RemoteBlog.swift b/WordPressKit/RemoteBlog.swift index 21b780c6..e240c49a 100644 --- a/WordPressKit/RemoteBlog.swift +++ b/WordPressKit/RemoteBlog.swift @@ -72,7 +72,7 @@ import NSObject_SafeExpectations self.options = RemoteBlogOptionsHelper.mapOptions(fromResponse: json) self.planID = json.number(forKeyPath: "plan.product_id") self.planTitle = json.string(forKeyPath: "plan.product_name_short") - self.hasPaidPlan = json.number(forKeyPath: "plan.is_free")?.boolValue ?? false + self.hasPaidPlan = !(json.number(forKeyPath: "plan.is_free")?.boolValue ?? true) self.quotaSpaceAllowed = json.number(forKeyPath: "quota.space_allowed") self.quotaSpaceUsed = json.number(forKeyPath: "quota.space_used") }