PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 4.3.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v4.3.2
4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / autoloader.php
wp-staging Last commit date
Backend 8 months ago Backup 8 months ago Basic 9 months ago Component 8 months ago Core 8 months ago Framework 8 months ago Frontend 8 months ago Notifications 8 months ago Staging 8 months ago assets 8 months ago languages 1 year ago resources 1 year ago vendor_wpstg 8 months ago views 8 months ago CONTRIBUTING.md 2 years ago Deactivate.php 8 months ago README.md 9 months ago SECURITY.md 2 years ago autoloader.php 3 years ago bootstrap.php 9 months ago constantsFree.php 8 months ago freeBootstrap.php 1 year ago install.php 1 year ago opcacheBootstrap.php 8 months ago readme.txt 8 months ago runtimeRequirements.php 9 months ago uninstall.php 11 months ago wp-staging-error-handler.php 1 year ago wp-staging.php 8 months ago
autoloader.php
30 lines
1 <?php
2
3 // Register the autoloader for the plugin source code, and for the prefixed vendors.
4 $class_map = array_merge(
5 include_once __DIR__ . '/vendor_wpstg/autoload/src.php',
6 include_once __DIR__ . '/vendor_wpstg/autoload/vendor.php'
7 );
8
9 spl_autoload_register(
10 function ($class) use ($class_map) {
11 if (isset($class_map[$class]) && file_exists($class_map[$class])) {
12 include_once $class_map[$class];
13
14 return true;
15 }
16
17 return null;
18 },
19 true,
20 true
21 );
22
23 $filesToInclude = include_once __DIR__ . '/vendor_wpstg/autoload/files.php';
24
25 foreach ($filesToInclude as $file) {
26 if (file_exists($file)) {
27 require $file;
28 }
29 }
30