PluginProbe
Boxzilla – WordPress Popup Builder / 3.4.0
Boxzilla – WordPress Popup Builder v3.4.0
3.4.11 3.4.10 3.4.9 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 trunk 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 All 72 releases
← All changes | boxzilla.php +40 -42 trunk3.4.0 View file →
@@ -1,16 +1,14 @@
1 1 <?php
2 -
3 2 /*
4 3 Plugin Name: Boxzilla
5 -Version: 3.4.11
4 +Version: 3.4.0
6 5 Plugin URI: https://www.boxzillaplugin.com/
7 6 Description: Call-To-Action Boxes that display after visitors scroll down far enough. Unobtrusive, but highly conversing!
8 7 Author: ibericode
9 8 Author URI: https://www.ibericode.com/
10 9 Text Domain: boxzilla
11 -Requires at least: 4.6
12 -Requires PHP: 7.4
10 +Domain Path: /languages/
13 11 License: GPL-3.0-or-later
14 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html
15 13
16 14 Boxzilla Plugin
@@ -33,57 +31,57 @@
33 31
34 32 // Exit if not loaded inside a WordPress context
35 33 defined('ABSPATH') or exit;
36 34
37 -// Exit if PHP lower than 7.4
38 -PHP_VERSION_ID >= 70400 or exit;
35 +// Exit if PHP lower than 7.2
36 +PHP_VERSION_ID >= 70200 or exit;
39 37
40 -define('BOXZILLA_FILE', __FILE__);
41 -define('BOXZILLA_DIR', __DIR__);
42 -define('BOXZILLA_VERSION', '3.4.11');
38 +define( 'BOXZILLA_FILE', __FILE__ );
39 +define( 'BOXZILLA_DIR', __DIR__ );
40 +define( 'BOXZILLA_VERSION', '3.3.1' );
43 41
44 42 require __DIR__ . '/autoload.php';
45 43 require __DIR__ . '/src/services.php';
46 44 require __DIR__ . '/src/licensing/services.php';
47 45
46 +
48 47 // register activation hook
49 -register_activation_hook(__FILE__, [ 'Boxzilla\\Admin\\Installer', 'run' ]);
50 -register_deactivation_hook(__FILE__, [ 'Boxzilla\\Licensing\\Poller', 'deactivate' ]);
48 +register_activation_hook( __FILE__, array( 'Boxzilla\\Admin\\Installer', 'run' ) );
51 49
52 50 // Bootstrap plugin at later action hook
53 51 add_action(
54 - 'plugins_loaded',
55 - function () {
56 - $boxzilla = boxzilla();
52 + 'plugins_loaded',
53 + function() {
54 + $boxzilla = boxzilla();
57 55
58 - // load default filters
59 - require __DIR__ . '/src/default-filters.php';
60 - require __DIR__ . '/src/default-actions.php';
56 + // load default filters
57 + require __DIR__ . '/src/default-filters.php';
58 + require __DIR__ . '/src/default-actions.php';
61 59
62 - if (wp_doing_ajax()) {
63 - $boxzilla['filter.autocomplete']->init();
64 - $boxzilla['admin.menu']->init();
65 - } elseif (wp_doing_cron()) {
66 - $boxzilla['license_poller']->init();
67 - } elseif (is_admin()) {
68 - $boxzilla['admin']->init();
69 - $boxzilla['admin.menu']->init();
70 - } else {
71 - add_action(
72 - 'template_redirect',
73 - function () use ($boxzilla) {
74 - $boxzilla['box_loader']->init();
75 - }
76 - );
77 - }
60 + if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
61 + $boxzilla['filter.autocomplete']->init();
62 + $boxzilla['admin.menu']->init();
63 + } elseif ( defined( 'DOING_CRON' ) && DOING_CRON ) {
64 + $boxzilla['license_poller']->init();
65 + } elseif ( is_admin() ) {
66 + $boxzilla['admin']->init();
67 + $boxzilla['admin.menu']->init();
68 + } else {
69 + add_action(
70 + 'template_redirect',
71 + function() use ( $boxzilla ) {
72 + $boxzilla['box_loader']->init();
73 + }
74 + );
75 + }
78 76
79 - // license manager
80 - if (is_admin() || wp_doing_cron() || ( defined('WP_CLI') && WP_CLI )) {
81 - $boxzilla['license_manager']->init();
77 + // license manager
78 + if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
79 + $boxzilla['license_manager']->init();
82 80
83 - if (count($boxzilla->plugins) > 0) {
84 - $boxzilla['update_manager']->init();
85 - }
86 - }
87 - },
88 - 90
81 + if ( count( $boxzilla->plugins ) > 0 ) {
82 + $boxzilla['update_manager']->init();
83 + }
84 + }
85 + },
86 + 90
89 87 );