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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ _None._
### New Features

- Add `tag` parameter to `PostServiceRemoteOptions` [#634]
- Add `transfer` case to `DomainType` case [#642]

## 8.10.0

Expand Down
5 changes: 5 additions & 0 deletions WordPressKit/RemoteDomain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Foundation
case registered
case mapped
case siteRedirect
case transfer
case wpCom

public var description: String {
Expand All @@ -16,6 +17,8 @@ import Foundation
return NSLocalizedString("Site Redirect", comment: "Describes a site redirect domain")
case .wpCom:
return NSLocalizedString("Included with Site", comment: "Describes a standard *.wordpress.com site domain")
case .transfer:
return NSLocalizedString("Transferred Domain", comment: "Describes a domain that was transferred from elsewhere to wordpress.com")
}
}

Expand All @@ -30,6 +33,8 @@ import Foundation
init(type: String?, wpComDomain: Bool?, hasRegistration: Bool?) {
if type == "redirect" {
self = .siteRedirect
} else if type == "transfer" {
self = .transfer
} else if wpComDomain == true {
self = .wpCom
} else if hasRegistration == true {
Expand Down