| @@ -11,9 +11,9 @@ | ||
| 11 | 11 | * @wordpress-plugin |
| 12 | 12 | * Plugin Name: HurryTimer |
| 13 | 13 | * Plugin URI: https://hurrytimer.com |
| 14 | 14 | * Description: A Scarcity and Urgency Countdown Timer for WordPress & WooCommerce with recurring and evergreen mode. |
| 15 | - * Version: 2.15.0 | |
| 15 | + * Version: 2.6.2 | |
| 16 | 16 | * Author: Nabil Lemsieh |
| 17 | 17 | * Author URI: https://hurrytimer.com |
| 18 | 18 | * License: GPLv3 |
| 19 | 19 | * License URI: http://www.gnu.org/licenses/gpl.html |
| @@ -19,9 +19,9 @@ | ||
| 19 | 19 | * License URI: http://www.gnu.org/licenses/gpl.html |
| 20 | 20 | * Text Domain: hurrytimer |
| 21 | 21 | * Domain Path: /languages |
| 22 | 22 | * WC requires at least: 3.0.0 |
| 23 | - * WC tested up to: 11.0 | |
| 23 | + * WC tested up to: 5.5 | |
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | // endRemoveIf(pro) |
| @@ -31,39 +31,13 @@ | ||
| 31 | 31 | if (!defined('WPINC')) { |
| 32 | 32 | die; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | -if(!(defined( 'WP_CLI' ) && WP_CLI) && function_exists('\is_plugin_active') && function_exists('\deactivate_plugins')): | |
| 36 | - | |
| 37 | -// removeIf(pro) | |
| 38 | -if ( defined( 'HURRYT_IS_PRO' ) ) { | |
| 39 | - if ( is_plugin_active( 'hurrytimer-pro/hurrytimer.php' ) ) { | |
| 40 | - deactivate_plugins( 'hurrytimer-pro/hurrytimer.php' ); | |
| 41 | - } | |
| 42 | - | |
| 43 | - wp_safe_redirect( esc_url_raw( $_SERVER['REQUEST_URI'] ) ); | |
| 44 | - exit; | |
| 45 | -} | |
| 46 | -// endRemoveIf(pro) | |
| 47 | - | |
| 48 | -endif; | |
| 49 | - | |
| 50 | -define('HURRYT_VERSION', '2.15.0'); | |
| 51 | - | |
| 35 | +define('HURRYT_VERSION', '2.6.2'); | |
| 52 | 36 | define('HURRYT_DIR', plugin_dir_path(__FILE__)); |
| 53 | 37 | define('HURRYT_URL', plugin_dir_url(__FILE__)); |
| 54 | 38 | define('HURRYT_BASENAME', plugin_basename(__FILE__)); |
| 55 | 39 | define('HURRYT_POST_TYPE', 'hurrytimer_countdown'); |
| 56 | - | |
| 57 | -// Declare compatibility with custom order tables for WooCommerce. | |
| 58 | -add_action( | |
| 59 | - 'before_woocommerce_init', | |
| 60 | - function () { | |
| 61 | - if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { | |
| 62 | - \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); | |
| 63 | - } | |
| 64 | - } | |
| 65 | -); | |
| 66 | 40 | |
| 67 | 41 | require_once __DIR__ . '/vendor/autoload.php'; |
| 68 | 42 | |
| 69 | 43 | register_activation_hook(__FILE__, [Hurrytimer\Installer::get_instance(), 'activate']); |