codingstandards src/

This commit is contained in:
David Remer 2020-08-31 13:08:27 +03:00
parent a35d103111
commit 42930b48be
3 changed files with 23 additions and 2 deletions

View file

@ -27,6 +27,12 @@ function autoload() {
'Logging' => $module_dir . 'woocommerce-logging/src/',
];
if (isset($class_parts[2]) && ! isset($class_parts[3])) {
$file_path = dirname(__DIR__) . '/src/class-' . strtolower($class_parts[2]) . '.php';
include $file_path;
return;
}
if (! isset($modules[$class_parts[2]])) {
return;
}