Skip to content
Merged
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
5 changes: 5 additions & 0 deletions WordPress/Classes/Models/Blog.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ - (void)prepareForDeletion
{
[super prepareForDeletion];

// delete stored password in the keychain for self-hosted sites.
if ([self.username length] > 0 && [self.xmlrpc length] > 0) {
self.password = nil;
}

[_xmlrpcApi invalidateAndCancelTasks];
[_wordPressOrgRestApi invalidateAndCancelTasks];
}
Expand Down