Commit e7a4a226 authored by Erick Hitter's avatar Erick Hitter
Browse files

Don't load classes that won't behave properly without table

parent e25720dc
......@@ -42,6 +42,7 @@ class Main extends Singleton {
require __DIR__ . '/utils.php';
require __DIR__ . '/class-events-store.php';
if ( Events_Store::is_installed() ) {
// Load dependencies for remaining classes
require __DIR__ . '/class-lock.php';
......@@ -50,6 +51,9 @@ class Main extends Singleton {
require __DIR__ . '/class-internal-events.php';
require __DIR__ . '/class-rest-api.php';
require __DIR__ . '/functions.php';
}
// Last but not least, some CLI
require __DIR__ . '/wp-cli.php';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment