Skip to content

Commit

Permalink
Move jetpack check inside plugin check, after TEST check
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Snook committed Feb 3, 2020
1 parent 3eae25a commit a81ee6d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions includes/class-wc-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ public static function init() {
return;
};

if ( ! self::check_for_jetpack_layer() ) {
return;
};

add_filter( 'plugin_action_links_' . plugin_basename( WCPAY_PLUGIN_FILE ), array( __CLASS__, 'add_plugin_links' ) );

self::$api_client = self::create_api_client();
Expand Down Expand Up @@ -143,6 +139,11 @@ public static function check_plugin_dependencies( $silent ) {
return true;
}

// TODO - Remove/update when Jetpack Connection package is all we need.
if ( ! self::check_for_jetpack_layer() ) {
return false;
};

$plugin_headers = self::get_plugin_headers();

$wc_version = $plugin_headers['WCRequires'];
Expand Down

0 comments on commit a81ee6d

Please sign in to comment.