File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
WordPress/Classes/ViewRelated/Blog Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ open class QuickStartTourGuide: NSObject {
4747 private override init ( ) { }
4848
4949 func setup( for blog: Blog , type: QuickStartType , withCompletedSteps steps: [ QuickStartTour ] = [ ] ) {
50+ guard JetpackFeaturesRemovalCoordinator . jetpackFeaturesEnabled ( ) else {
51+ return
52+ }
53+
5054 if type == . newSite {
5155 let createTour = QuickStartCreateTour ( )
5256 completed ( tour: createTour, for: blog)
@@ -80,7 +84,15 @@ open class QuickStartTourGuide: NSObject {
8084 }
8185
8286 @objc static func quickStartEnabled( for blog: Blog ) -> Bool {
83- QuickStartFactory . collections ( for: blog) . isEmpty == false
87+ let enabled = QuickStartFactory . collections ( for: blog) . isEmpty == false
88+ guard JetpackFeaturesRemovalCoordinator . jetpackFeaturesEnabled ( ) else {
89+ if enabled { // If quick start exists, remove it to clean up.
90+ QuickStartTourGuide . shared. remove ( from: blog)
91+ }
92+ return false
93+ }
94+
95+ return enabled
8496 }
8597
8698 /// Provides a tour to suggest to the user
You can’t perform that action at this time.
0 commit comments