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 | autoload.php +25 -28 trunk3.4.0 View file →
@@ -1,35 +1,32 @@
1 1 <?php
2 2
3 -if (! defined('ABSPATH')) {
4 - exit;
5 -}
6 -
7 3 require __DIR__ . '/src/functions.php';
8 4
9 5 spl_autoload_register(function ($class) {
10 - static $classmap = [
11 - 'Boxzilla\\Admin\\Admin' => __DIR__ . '/src/admin/class-admin.php',
12 - 'Boxzilla\\Admin\\Installer' => __DIR__ . '/src/admin/class-installer.php',
13 - 'Boxzilla\\Admin\\Menu' => __DIR__ . '/src/admin/class-menu.php',
14 - 'Boxzilla\\Admin\\Migrations' => __DIR__ . '/src/admin/class-migrations.php',
15 - 'Boxzilla\\Admin\\Notices' => __DIR__ . '/src/admin/class-notices.php',
16 - 'Boxzilla\\Admin\\ReviewNotice' => __DIR__ . '/src/admin/class-review-notice.php',
17 - 'Boxzilla\\Box' => __DIR__ . '/src/class-box.php',
18 - 'Boxzilla\\BoxLoader' => __DIR__ . '/src/class-loader.php',
19 - 'Boxzilla\\Boxzilla' => __DIR__ . '/src/class-boxzilla.php',
20 - 'Boxzilla\\DI\\Container' => __DIR__ . '/src/di/class-container.php',
21 - 'Boxzilla\\DI\\ContainerWithPropertyAccess' => __DIR__ . '/src/di/class-container-with-property-access.php',
22 - 'Boxzilla\\Filter\\Autocomplete' => __DIR__ . '/src/admin/class-autocomplete.php',
23 - 'Boxzilla\\Licensing\\API' => __DIR__ . '/src/licensing/class-api.php',
24 - 'Boxzilla\\Licensing\\API_Exception' => __DIR__ . '/src/licensing/class-api-exception.php',
25 - 'Boxzilla\\Licensing\\License' => __DIR__ . '/src/licensing/class-license.php',
26 - 'Boxzilla\\Licensing\\LicenseManager' => __DIR__ . '/src/licensing/class-license-manager.php',
27 - 'Boxzilla\\Licensing\\Poller' => __DIR__ . '/src/licensing/class-poller.php',
28 - 'Boxzilla\\Licensing\\UpdateManager' => __DIR__ . '/src/licensing/class-update-manager.php',
29 - 'Boxzilla\\Plugin' => __DIR__ . '/src/class-plugin.php',
30 - ];
6 + static $classmap = [
7 + 'Boxzilla\\Admin\\Admin' => __DIR__ . '/src/admin/class-admin.php',
8 + 'Boxzilla\\Admin\\Installer' => __DIR__ . '/src/admin/class-installer.php',
9 + 'Boxzilla\\Admin\\Menu' => __DIR__ . '/src/admin/class-menu.php',
10 + 'Boxzilla\\Admin\\Migrations' => __DIR__ . '/src/admin/class-migrations.php',
11 + 'Boxzilla\\Admin\\Notices' => __DIR__ . '/src/admin/class-notices.php',
12 + 'Boxzilla\\Admin\\ReviewNotice' => __DIR__ . '/src/admin/class-review-notice.php',
13 + 'Boxzilla\\Bootstrapper' => __DIR__ . '/src/class-bootstrapper.php',
14 + 'Boxzilla\\Box' => __DIR__ . '/src/class-box.php',
15 + 'Boxzilla\\BoxLoader' => __DIR__ . '/src/class-loader.php',
16 + 'Boxzilla\\Boxzilla' => __DIR__ . '/src/class-boxzilla.php',
17 + 'Boxzilla\\DI\\Container' => __DIR__ . '/src/di/class-container.php',
18 + 'Boxzilla\\DI\\ContainerWithPropertyAccess' => __DIR__ . '/src/di/class-container-with-property-access.php',
19 + 'Boxzilla\\Filter\\Autocomplete' => __DIR__ . '/src/admin/class-autocomplete.php',
20 + 'Boxzilla\\Licensing\\API' => __DIR__ . '/src/licensing/class-api.php',
21 + 'Boxzilla\\Licensing\\API_Exception' => __DIR__ . '/src/licensing/class-api-exception.php',
22 + 'Boxzilla\\Licensing\\License' => __DIR__ . '/src/licensing/class-license.php',
23 + 'Boxzilla\\Licensing\\LicenseManager' => __DIR__ . '/src/licensing/class-license-manager.php',
24 + 'Boxzilla\\Licensing\\Poller' => __DIR__ . '/src/licensing/class-poller.php',
25 + 'Boxzilla\\Licensing\\UpdateManager' => __DIR__ . '/src/licensing/class-update-manager.php',
26 + 'Boxzilla\\Plugin' => __DIR__ . '/src/class-plugin.php',
27 + ];
31 28
32 - if (isset($classmap[$class])) {
33 - require $classmap[$class];
34 - }
29 + if (isset($classmap[$class])) {
30 + require $classmap[$class];
31 + }
35 32 });