Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions class-wc-facebookcommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,14 @@ protected function get_deprecated_hooks() {
* @since x.x.x
*/
public function add_setup_task() {
TaskLists::add_task(
'extended',
new Setup(
TaskLists::get_list( 'extended' )
)
);
if ( class_exists( 'TaskLists' ) ) { // This is added for backward compatibility.
TaskLists::add_task(
'extended',
new Setup(
TaskLists::get_list( 'extended' )
)
);
}
}

/**
Expand Down Expand Up @@ -384,7 +386,7 @@ public function add_admin_notices() {
&& \Automattic\WooCommerce\Admin\Loader::is_feature_enabled( 'marketing' );
}

if ( $is_marketing_enabled ) {
if ( $is_marketing_enabled && class_exists( '\Automattic\WooCommerce\Admin\Notes\Note' ) ) { // Checking for Note class is for backward compatibility.
SettingsMoved::possibly_add_or_delete_note();
}
}
Expand Down
4 changes: 2 additions & 2 deletions facebook-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Version: 2.6.28
* Text Domain: facebook-for-woocommerce
* Tested up to: 6.0
* WC requires at least: 3.5.0
* WC requires at least: 5.3
* WC tested up to: 7.0
* Requires PHP: 7.0
*
Expand Down Expand Up @@ -53,7 +53,7 @@ class WC_Facebook_Loader {
const MINIMUM_WP_VERSION = '4.4';

// Minimum WooCommerce version required by this plugin.
const MINIMUM_WC_VERSION = '3.5.0';
const MINIMUM_WC_VERSION = '5.3';

// SkyVerge plugin framework version used by this plugin.
const FRAMEWORK_VERSION = '5.10.0';
Expand Down