PluginProbe
Boxzilla – WordPress Popup Builder / 3.2.4
Boxzilla – WordPress Popup Builder v3.2.4
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 | bootstrap.php +9 -5 3.0.33.2.4 View file →
@@ -12,8 +12,10 @@
12 12 $provider->register( $boxzilla );
13 13 $provider = new Licensing\LicenseServiceProvider();
14 14 $provider->register( $boxzilla );
15 15
16 +
17 +
16 18 // Rest of bootstrapping runs at plugins_loaded:90
17 19 add_action( 'plugins_loaded', function() use( $boxzilla ) {
18 20
19 21 // load default filters
@@ -23,13 +25,8 @@
23 25 $bootstrapper = $boxzilla->bootstrapper;
24 26
25 27 $bootstrapper->admin(function() use( $boxzilla ){
26 28 $boxzilla['admin']->init();
27 -
28 - if( count( $boxzilla->plugins ) > 0 ) {
29 - $boxzilla['license_manager']->hook();
30 - $boxzilla['update_manager']->hook();
31 - }
32 29 });
33 30
34 31 $bootstrapper->ajax(function() use( $boxzilla ) {
35 32 $boxzilla['filter.autocomplete']->add_hooks();
@@ -43,7 +40,14 @@
43 40
44 41 $bootstrapper->cron(function() use( $boxzilla ) {
45 42 $boxzilla['license_poller']->hook();
46 43 });
44 +
45 + if( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
46 + if( count( $boxzilla->plugins ) > 0 ) {
47 + $boxzilla['license_manager']->hook();
48 + $boxzilla['update_manager']->hook();
49 + }
50 + }
47 51
48 52 $bootstrapper->run();
49 53 }, 90 );