Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WordPressKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Pod::Spec.new do |s|
s.name = 'WordPressKit'
s.version = '4.49.0'
s.version = '4.50.0-beta.1'

s.summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.'
s.description = <<-DESC
Expand Down
3 changes: 3 additions & 0 deletions WordPressKit/RemoteBlockEditorSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public class RemoteBlockEditorSettings: Codable {
enum CodingKeys: String, CodingKey {
case isFSETheme = "__unstableEnableFullSiteEditingBlocks"
case galleryWithImageBlocks = "__unstableGalleryWithImageBlocks"
case quoteBlockV2 = "__experimentalEnableQuoteBlockV2"
case rawStyles = "__experimentalStyles"
case rawFeatures = "__experimentalFeatures"
case colors
Expand All @@ -12,6 +13,7 @@ public class RemoteBlockEditorSettings: Codable {

public let isFSETheme: Bool
public let galleryWithImageBlocks: Bool
public let quoteBlockV2: Bool
public let rawStyles: String?
public let rawFeatures: String?
public let colors: [[String: String]]?
Expand All @@ -37,6 +39,7 @@ public class RemoteBlockEditorSettings: Codable {
let map = try decoder.container(keyedBy: CodingKeys.self)
self.isFSETheme = (try? map.decode(Bool.self, forKey: .isFSETheme)) ?? false
self.galleryWithImageBlocks = (try? map.decode(Bool.self, forKey: .galleryWithImageBlocks)) ?? false
self.quoteBlockV2 = (try? map.decode(Bool.self, forKey: .quoteBlockV2)) ?? false
self.rawStyles = RemoteBlockEditorSettings.parseToString(map, .rawStyles)
self.rawFeatures = RemoteBlockEditorSettings.parseToString(map, .rawFeatures)
self.colors = try? map.decode([[String: String]].self, forKey: .colors)
Expand Down