PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 3.1.14
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v3.1.14
3.1.14 3.1.13 3.1.12 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 All 123 releases
← All changes | firebox.php +29 -31 3.1.9 → 3.1.14 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 3.1.9
4 + * @version 3.1.14
5 5 *
6 6 * @author FirePlugins <[email protected]>
7 7 * @link https://www.fireplugins.com
8 8 * @copyright Copyright © 2026 FirePlugins All Rights Reserved
@@ -7,12 +7,12 @@
7 7 * @link https://www.fireplugins.com
8 8 * @copyright Copyright © 2026 FirePlugins All Rights Reserved
9 9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 10 *
11 - * Plugin Name: FireBox 3.1.9 Free
11 + * Plugin Name: FireBox 3.1.14 Free
12 12 * Plugin URI: https://www.fireplugins.com/
13 13 * Description: WordPress Popup and leads generation plugin that converts visitors into subscribers & customers.
14 - * Version: 3.1.9
14 + * Version: 3.1.14
15 15 * Author: FireBox Popup Plugin Team
16 16 * Author URI: https://www.fireplugins.com/
17 17 * Text Domain: firebox
18 18 * Domain Path: /languages
@@ -46,9 +46,9 @@
46 46
47 47 // Plugin version
48 48 if (!defined('FBOX_VERSION'))
49 49 {
50 - define('FBOX_VERSION', '3.1.9');
50 + define('FBOX_VERSION', '3.1.14');
51 51 }
52 52
53 53 // Plugin License type (free/pro)
54 54 if (!defined('FBOX_LICENSE_TYPE'))
@@ -53,12 +53,13 @@
53 53 // Plugin License type (free/pro)
54 54 if (!defined('FBOX_LICENSE_TYPE'))
55 55 {
56 56
57 - $type = 'lite';
57 + $fbox_license_type = 'lite';
58 58
59 59
60 - define('FBOX_LICENSE_TYPE', $type);
60 + define('FBOX_LICENSE_TYPE', $fbox_license_type);
61 + unset($fbox_license_type);
61 62 }
62 63
63 64 // Plugin License Plan (basic/pro/growth)
64 65 if (!defined('FBOX_LICENSE_PLAN'))
@@ -63,15 +64,16 @@
63 64 // Plugin License Plan (basic/pro/growth)
64 65 if (!defined('FBOX_LICENSE_PLAN'))
65 66 {
66 67
67 - $plan = 'free';
68 + $fbox_license_plan = 'free';
68 69
69 70
70 71
71 72
72 -
73 - define('FBOX_LICENSE_PLAN', $plan);
73 +
74 + define('FBOX_LICENSE_PLAN', $fbox_license_plan);
75 + unset($fbox_license_plan);
74 76 }
75 77
76 78 // PHP Minimm Version
77 79 if (!defined('FBOX_MINIMUM_PHP_VERSION'))
@@ -101,9 +103,9 @@
101 103
102 104 // Plugin Release Date
103 105 if (!defined('FBOX_RELEASE_DATE'))
104 106 {
105 - define('FBOX_RELEASE_DATE', '2026-07-16');
107 + define('FBOX_RELEASE_DATE', '2026-10-02');
106 108 }
107 109
108 110 // Layouts Folder Path
109 111 if (!defined('FBOX_LAYOUTS_DIR'))
@@ -170,35 +172,31 @@
170 172 add_action('admin_notices', 'firebox_fail_php_version');
171 173 }
172 174 else
173 175 {
174 - // Migrator
175 - function firebox_upgrader_migrator_start($upgrader_object, $options)
176 + /**
177 + * Install and upgrade entry point.
178 + *
179 + * The activation hook fires on one site only, and never for a site added to
180 + * a network later. It is also missed when a plugin is activated by WP-CLI on
181 + * part of a network, or when a site is restored from a backup. Comparing the
182 + * stored version to the running one catches all of those, and it covers the
183 + * plugin update too — upgrader_process_complete runs while the old code is
184 + * still loaded, so the first request on the new code is what has to do the
185 + * work anyway. The installer stamps the version, so this runs once.
186 + */
187 + function firebox_init_installer_start()
176 188 {
177 - if ($options['action'] === 'update' && $options['type'] === 'plugin' && isset($options['plugins']))
178 - {
179 - foreach ($options['plugins'] as $plugin)
189 + add_action('fpf_init', function() {
190 + if (get_option('firebox_version') === FBOX_VERSION)
180 191 {
181 - if ($plugin !== plugin_basename(__FILE__))
182 - {
183 - continue;
184 - }
185 -
186 - $migrator = new \FireBox\Core\Migrator(get_option('firebox_version', '1.0.0'));
187 - $migrator->run();
192 + return;
188 193 }
189 - }
190 - }
191 - add_action('upgrader_process_complete', 'firebox_upgrader_migrator_start', 10, 2);
192 194
193 - function firebox_init_migrator_start()
194 - {
195 - add_action('fpf_init', function() {
196 - $migrator = new \FireBox\Core\Migrator(get_option('firebox_version', '1.0.0'));
197 - $migrator->run();
195 + \FireBox\Core\Admin\SiteInstaller::install();
198 196 });
199 197 }
200 - add_action('plugins_loaded', 'firebox_init_migrator_start', -1);
198 + add_action('plugins_loaded', 'firebox_init_installer_start', -1);
201 199
202 200
203 201
204 202 // Start Plugin