Merge pull request #25742 from woocommerce/fix/25651

Run configure for Jetpack plugin before attempting to try_registration.
This commit is contained in:
Vedanshu Jain 2020-02-25 09:31:27 +05:30 committed by GitHub
commit 0dc5c0bcb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2428,6 +2428,8 @@ class WC_Admin_Setup_Wizard {
}
Jetpack::maybe_set_version_option();
$jetpack = Jetpack::init();
$jetpack->configure();
$register_result = Jetpack::try_registration();
if ( is_wp_error( $register_result ) ) {