Skip to content

Commit

Permalink
Jetpack Onboarding Endpoints
Browse files Browse the repository at this point in the history
Check for `Jetpack_Landing_Page` class before initializing.
The newest version of Jetpack removes `Jetpack_Landing_Page` entirely,
so our endpoint needs to check for it.
  • Loading branch information
roccotripaldi committed Aug 30, 2016
1 parent b354b1b commit af17709
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 af17709

Please sign in to comment.