PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.5.2
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.5.2
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / team-updraft / lib-onboarding-wizard / autoload.php

autoload.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.5.2, at vendor/team-updraft/lib-onboarding-wizard/autoload.php

22 lines 524 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 spl_autoload_register(function ($class) {
4
5 $prefix = 'Updraftplus\Wp_Optimize\\';
6
7 // Only handle classes with namespace starting with prefix.
8 if (strpos($class, $prefix) !== 0) {
9 return;
10 }
11
12 // Remove the namespace prefix
13 $relative_class = substr($class, strlen($prefix));
14 $relative_path = str_replace('\\', DIRECTORY_SEPARATOR, $relative_class) . '.php';
15 $file = __DIR__ . DIRECTORY_SEPARATOR . $relative_path;
16
17 // Require the file if it exists.
18 if (file_exists($file)) {
19 require_once $file;
20 }
21 });
22