diff --git a/class-wc-facebookcommerce.php b/class-wc-facebookcommerce.php index 05c579df3..4811289ff 100644 --- a/class-wc-facebookcommerce.php +++ b/class-wc-facebookcommerce.php @@ -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' ) + ) + ); + } } /** @@ -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(); } } diff --git a/facebook-for-woocommerce.php b/facebook-for-woocommerce.php index f268f8e15..9ceb5f140 100644 --- a/facebook-for-woocommerce.php +++ b/facebook-for-woocommerce.php @@ -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 * @@ -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';