Skip to content
This repository was archived by the owner on Feb 5, 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 WordPressAuthenticator.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "WordPressAuthenticator"
s.version = "1.37.0"
s.version = "1.38.0-beta.1"

s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."
s.description = <<-DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,22 @@ private extension GetStartedViewController {
// username instead.
self.showSelfHostedWithError(error)
} else {
self.displayError(error as NSError, sourceTag: self.sourceTag)
guard let authenticationDelegate = WordPressAuthenticator.shared.delegate,
authenticationDelegate.shouldHandleError(error) else {
self.displayError(error as NSError, sourceTag: self.sourceTag)
return
}

/// Hand over control to the host app.
authenticationDelegate.handleError(error) { customUI in
// Setting the rightBarButtonItems of the custom UI before pushing the view controller
// and resetting the navigationController's navigationItem after the push seems to be the
// only combination that gets the Help button to show up.
customUI.navigationItem.rightBarButtonItems = self.navigationItem.rightBarButtonItems
self.navigationController?.navigationItem.rightBarButtonItems = self.navigationItem.rightBarButtonItems

self.navigationController?.pushViewController(customUI, animated: true)
}
}
}

Expand Down