Skip to content

Commit

Permalink
Hide classic option on Simple sites
Browse files Browse the repository at this point in the history
On Simple WP.com sites, we no longer show the option to switch to classic. This is part of the classic deprecation/removal project.
  • Loading branch information
guarani committed Mar 15, 2021
1 parent 88f3dfb commit 5f023ae
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ extension GutenbergViewController {
}
}

alert.addDefaultActionWithTitle(MoreSheetAlert.classicTitle) { [unowned self] _ in
self.savePostEditsAndSwitchToAztec()
// Only add the action if the site is not a Simple WP.com site
let isSimpleWPComSite = !post.blog.isAtomic() && post.blog.isHostedAtWPcom
if !isSimpleWPComSite {
alert.addDefaultActionWithTitle(MoreSheetAlert.classicTitle) { [unowned self] _ in
self.savePostEditsAndSwitchToAztec()
}
}

let toggleModeTitle: String = {
Expand Down

0 comments on commit 5f023ae

Please sign in to comment.