| @@ -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: 2.0 | |
| 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.17.6 | |
| 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 | |
| @@ -20,39 +20,33 @@ | ||
| 20 | 20 | exit; |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | // Define most essential constants. |
| 24 | -define('BITFORMS_VERSION', '2.0'); | |
| 24 | +define('BITFORMS_VERSION', '2.17.6'); | |
| 25 | 25 | define('BITFORMS_PLUGIN_MAIN_FILE', __FILE__); |
| 26 | 26 | |
| 27 | 27 | global $bitforms_db_version; |
| 28 | -$bitforms_db_version = '2.2'; | |
| 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 | - $rootVersionFolder = ''; | |
| 32 | - $isMigratedToV2 = get_option('bitforms_migrated_to_v2'); | |
| 33 | - $isMigratingToV2 = get_option('bitforms_migrating_to_v2'); | |
| 34 | - if (!$isMigratingToV2 && !$isMigratedToV2) { | |
| 35 | - global $wpdb; | |
| 36 | - $oldForms = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}bitforms_form"); | |
| 37 | - if (count($oldForms) > 0) { | |
| 38 | - $rootVersionFolder = 'v1/'; | |
| 39 | - } else { | |
| 40 | - update_option('bitforms_migrated_to_v2', true); | |
| 41 | - } | |
| 42 | - } | |
| 43 | - require_once plugin_dir_path(__FILE__) . $rootVersionFolder . 'includes/loader.php'; | |
| 35 | + require_once plugin_dir_path(__FILE__) . 'includes/loader.php'; | |
| 44 | 36 | } |
| 37 | + | |
| 45 | 38 | /** |
| 46 | 39 | * Handles plugin activation. |
| 47 | 40 | * |
| 48 | 41 | * Throws an error if the plugin is activated on an older version than PHP 5.6. |
| 49 | 42 | */ |
| 50 | -function bitforms_activate_plugin($network_wide) { | |
| 43 | +function bitforms_activate_plugin($network_wide) | |
| 44 | +{ | |
| 51 | 45 | if (version_compare(PHP_VERSION, '5.6.0', '<')) { |
| 52 | 46 | wp_die( |
| 53 | - esc_html__('bitforms requires PHP version 5.6.', 'bit-form'), | |
| 54 | - esc_html__('Error Activating', 'bit-form') | |
| 47 | + esc_html_e('bitforms requires PHP version 5.6.', 'bit-form'), | |
| 48 | + esc_html_e('Error Activating', 'bit-form') | |
| 55 | 49 | ); |
| 56 | 50 | } |
| 57 | 51 | |
| 58 | 52 | do_action('bitforms_activation', $network_wide); |
| @@ -62,9 +56,10 @@ | ||
| 62 | 56 | |
| 63 | 57 | /** |
| 64 | 58 | * Handles plugin deactivation. |
| 65 | 59 | */ |
| 66 | -function bitforms_deactivate_plugin($network_wide) { | |
| 60 | +function bitforms_deactivate_plugin($network_wide) | |
| 61 | +{ | |
| 67 | 62 | if (version_compare(PHP_VERSION, '5.6.0', '<')) { |
| 68 | 63 | return; |
| 69 | 64 | } |
| 70 | 65 | |
| @@ -77,9 +72,10 @@ | ||
| 77 | 72 | * Handles plugin uninstall. |
| 78 | 73 | * |
| 79 | 74 | * @access private |
| 80 | 75 | */ |
| 81 | -function bitforms_uninstall_plugin() { | |
| 76 | +function bitforms_uninstall_plugin() | |
| 77 | +{ | |
| 82 | 78 | if (version_compare(PHP_VERSION, '5.6.0', '<')) { |
| 83 | 79 | return; |
| 84 | 80 | } |
| 85 | 81 | |