| @@ -2,14 +2,14 @@ | ||
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * Plugin Name: Bit Form |
| 5 | 5 | * Plugin URI: https://www.bitapps.pro/bit-form |
| 6 | - * Description: Wordpress form builder plugin | |
| 7 | - * Version: 1.9 | |
| 8 | - * Author: Bit Apps | |
| 6 | + * Description: Contact Form Builder Plugin: Multi Step Contact Form, Payment Form, Custom Contact Form Plugin by Bit Form | |
| 7 | + * Version: 2.16.2 | |
| 8 | + * Author: Contact Form Builder - Bit Form | |
| 9 | 9 | * Author URI: https://www.bitapps.pro |
| 10 | 10 | * Text Domain: bit-form |
| 11 | - * Requires PHP: 5.6 | |
| 11 | + * Requires PHP: 7.4 | |
| 12 | 12 | * Domain Path: /languages |
| 13 | 13 | * License: GPLv2 or later |
| 14 | 14 | */ |
| 15 | 15 | |
| @@ -16,21 +16,26 @@ | ||
| 16 | 16 | /*** |
| 17 | 17 | * If try to direct access plugin folder it will Exit |
| 18 | 18 | **/ |
| 19 | 19 | if (!defined('ABSPATH')) { |
| 20 | - exit; | |
| 20 | + exit; | |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | // Define most essential constants. |
| 24 | -define('BITFORMS_VERSION', '1.9'); | |
| 24 | +define('BITFORMS_VERSION', '2.16.2'); | |
| 25 | 25 | define('BITFORMS_PLUGIN_MAIN_FILE', __FILE__); |
| 26 | 26 | |
| 27 | 27 | global $bitforms_db_version; |
| 28 | -$bitforms_db_version = '1.4'; | |
| 28 | +$bitforms_db_version = '2.3'; | |
| 29 | +define('BITFORMS_DB_VERSION', $bitforms_db_version); | |
| 30 | +define('BITFORMS_REQUIRED_WP_VERSION', '5.1'); | |
| 31 | +define('BITFORMS_REQUIRED_PHP_VERSION', '7.4'); | |
| 32 | +define('BITFORMS_API_VERSION', '1.0'); | |
| 29 | 33 | |
| 30 | 34 | if (version_compare(PHP_VERSION, '5.6.0', '>=')) { |
| 31 | - require_once plugin_dir_path(__FILE__) . 'includes/loader.php'; | |
| 35 | + require_once plugin_dir_path(__FILE__) . 'includes/loader.php'; | |
| 32 | 36 | } |
| 37 | + | |
| 33 | 38 | /** |
| 34 | 39 | * Handles plugin activation. |
| 35 | 40 | * |
| 36 | 41 | * Throws an error if the plugin is activated on an older version than PHP 5.6. |
| @@ -36,16 +41,16 @@ | ||
| 36 | 41 | * Throws an error if the plugin is activated on an older version than PHP 5.6. |
| 37 | 42 | */ |
| 38 | 43 | function bitforms_activate_plugin($network_wide) |
| 39 | 44 | { |
| 40 | - if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 41 | - wp_die( | |
| 42 | - esc_html__('bitforms requires PHP version 5.6.', 'bit-form'), | |
| 43 | - esc_html__('Error Activating', 'bit-form') | |
| 44 | - ); | |
| 45 | - } | |
| 45 | + if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 46 | + wp_die( | |
| 47 | + esc_html_e('bitforms requires PHP version 5.6.', 'bit-form'), | |
| 48 | + esc_html_e('Error Activating', 'bit-form') | |
| 49 | + ); | |
| 50 | + } | |
| 46 | 51 | |
| 47 | - do_action('bitforms_activation', $network_wide); | |
| 52 | + do_action('bitforms_activation', $network_wide); | |
| 48 | 53 | } |
| 49 | 54 | |
| 50 | 55 | register_activation_hook(__FILE__, 'bitforms_activate_plugin'); |
| 51 | 56 | |
| @@ -53,13 +58,13 @@ | ||
| 53 | 58 | * Handles plugin deactivation. |
| 54 | 59 | */ |
| 55 | 60 | function bitforms_deactivate_plugin($network_wide) |
| 56 | 61 | { |
| 57 | - if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 58 | - return; | |
| 59 | - } | |
| 62 | + if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 63 | + return; | |
| 64 | + } | |
| 60 | 65 | |
| 61 | - do_action('bitforms_deactivation', $network_wide); | |
| 66 | + do_action('bitforms_deactivation', $network_wide); | |
| 62 | 67 | } |
| 63 | 68 | |
| 64 | 69 | register_deactivation_hook(__FILE__, 'bitforms_deactivate_plugin'); |
| 65 | 70 | |
| @@ -69,11 +74,11 @@ | ||
| 69 | 74 | * @access private |
| 70 | 75 | */ |
| 71 | 76 | function bitforms_uninstall_plugin() |
| 72 | 77 | { |
| 73 | - if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 74 | - return; | |
| 75 | - } | |
| 78 | + if (version_compare(PHP_VERSION, '5.6.0', '<')) { | |
| 79 | + return; | |
| 80 | + } | |
| 76 | 81 | |
| 77 | - do_action('bitforms_uninstall'); | |
| 82 | + do_action('bitforms_uninstall'); | |
| 78 | 83 | } |
| 79 | 84 | register_uninstall_hook(__FILE__, 'bitforms_uninstall_plugin'); |