We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0c3843 commit 3896244Copy full SHA for 3896244
WordPress/Classes/Models/Blog.m
@@ -112,6 +112,17 @@ - (void)prepareForDeletion
112
113
[_xmlrpcApi invalidateAndCancelTasks];
114
[_selfHostedSiteRestApi invalidateAndCancelTasks];
115
+
116
+ // Remove the self-hosted site cookies from the shared cookie storage.
117
+ if (self.account == nil && self.url != nil) {
118
+ NSURL *siteURL = [NSURL URLWithString:self.url];
119
+ if (siteURL != nil) {
120
+ NSHTTPCookieStorage *cookieJar = [NSHTTPCookieStorage sharedHTTPCookieStorage];
121
+ for (NSHTTPCookie *cookie in [cookieJar cookiesForURL:siteURL]) {
122
+ [cookieJar deleteCookie:cookie];
123
+ }
124
125
126
}
127
128
- (void)didTurnIntoFault
0 commit comments