| Server IP : 13.126.101.145 / Your IP : 216.73.216.159 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/rentals_updated/wp-content/plugins/wp-migrate-db/class/ |
Upload File : |
<?php
defined( 'ABSPATH' ) || exit;
use DeliciousBrains\WPMDB\SetupProviders;
$providers = new SetupProviders();
$is_pro = defined("WPMDB_PRO") && WPMDB_PRO;
$providers->setup($is_pro);
$classes = [];
if ($providers !== null) {
foreach ($providers->classes as $key => $class) {
if ($class === null) {
continue;
}
// Access by classname ex. Properties::class
$classes[get_class($class)] = function () use ($class) {
return $class;
};
// Access by 'shorthand' ex. 'properties'
$classes[$key] = function () use ($class) {
return $class;
};
}
}
if ($is_pro) {
DeliciousBrains\WPMDB\Pro\Compatibility\Layers\Addons\Addons::substitute_classes($classes);
}
if (!empty($classes)) {
return $classes;
}
throw new Exception(__("Classmap could not be generated.", 'wp-migrate-db'));