Skip to content

Commit

Permalink
Merge pull request #34 from Automattic/fix/32-server-error-during-con…
Browse files Browse the repository at this point in the history
…nection

Jetpack Onboarding Endpoints
  • Loading branch information
roccotripaldi authored Aug 30, 2016
2 parents 1bae98c + af17709 commit 534455c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions class.jetpack-onboarding-end-points.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,10 @@ static function configure_jetpack() {
}
}

$jp_landing_page = new Jetpack_Landing_Page();
$jp_landing_page->add_actions();
if ( class_exists( 'Jetpack_Landing_Page' ) ) {
$jp_landing_page = new Jetpack_Landing_Page();
$jp_landing_page->add_actions();
}

// redirect to activate link
$connect_url = Jetpack::init()->build_connect_url( true, admin_url('index.php#welcome/steps/'.$return_to_step) );
Expand Down

0 comments on commit 534455c

Please sign in to comment.