Skip to content

Commit

Permalink
Update Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Aug 7, 2024
1 parent faf485f commit 6152f1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "WordPressKit",
url: "https://github.com/user-attachments/files/16200443/WordPressKit.zip",
checksum: "09fde69ac4ca044a02ed52daa478c025c66fcfbf6cb5b64af2ab7959fc403508"
url: "https://github.com/user-attachments/files/16531819/WordPressKit.zip",
checksum: "ace4d808b21e455153bae829ae3ce58292b40f4ed8b620d13dc56dff22790a00"
),
]
)
3 changes: 3 additions & 0 deletions Sources/WordPressKit/Models/RemoteBlogOptionsHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import Foundation
if response.number(forKey: "jetpack")?.boolValue == true {
options["jetpack_client_id"] = response.number(forKey: "ID")
}
if response.number(forKey: "is_wpcom_staging_site")?.boolValue == true {
options["is_wpcom_staging_site"] = response.number(forKey: "ID")
}
if response["options"] != nil {
options["post_thumbnail"] = response.value(forKeyPath: "options.featured_images_enabled")

Expand Down

0 comments on commit 6152f1f

Please sign in to comment.