File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
WordPress/Classes/ViewRelated/Blog/Blog List Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 11extension BlogListViewController {
22 @objc
33 func launchSiteCreation( ) {
4- let wizardLauncher = SiteCreationWizardLauncher ( )
5- guard let wizard = wizardLauncher. ui else {
6- return
4+ JetpackFeaturesRemovalCoordinator . presentSiteCreationOverlayIfNeeded ( in: self ) {
5+ guard JetpackFeaturesRemovalCoordinator . siteCreationPhase ( ) != . two else {
6+ return
7+ }
8+
9+ // Display site creation flow if not in phase two
10+ let wizardLauncher = SiteCreationWizardLauncher ( )
11+ guard let wizard = wizardLauncher. ui else {
12+ return
13+ }
14+ self . present ( wizard, animated: true )
15+ WPAnalytics . track ( . enhancedSiteCreationAccessed, withProperties: [ " source " : " my_sites " ] )
716 }
8- present ( wizard, animated: true )
9- WPAnalytics . track ( . enhancedSiteCreationAccessed, withProperties: [ " source " : " my_sites " ] )
1017 }
1118}
You can’t perform that action at this time.
0 commit comments