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

Commit 166ecf4

Browse files
committed
Add transafer case to DomainType
1 parent ae2d7a1 commit 166ecf4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

WordPressKit/RemoteDomain.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Foundation
44
case registered
55
case mapped
66
case siteRedirect
7+
case transfer
78
case wpCom
89

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

@@ -30,6 +33,8 @@ import Foundation
3033
init(type: String?, wpComDomain: Bool?, hasRegistration: Bool?) {
3134
if type == "redirect" {
3235
self = .siteRedirect
36+
} else if type == "transfer" {
37+
self = .transfer
3338
} else if wpComDomain == true {
3439
self = .wpCom
3540
} else if hasRegistration == true {

0 commit comments

Comments
 (0)