From 82fff1107a46f9cdaab589e619b03a3c76431c4f Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 4 Sep 2021 14:45:57 +0200 Subject: Update db tables if needed on every load. No need to deactivate/activate plugin to get the right version of the tables. --- giglogadmin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/giglogadmin.php b/giglogadmin.php index dec54a7..2db1f3b 100644 --- a/giglogadmin.php +++ b/giglogadmin.php @@ -24,6 +24,8 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { + + require_once __DIR__ . '/includes/admin/register_db_tables.php'; require_once __DIR__ . '/includes/public/shortcodes/giglog_bands.php'; require_once __DIR__ . '/includes/public/shortcodes/giglog_display_unprocessed.php'; require_once __DIR__ . '/includes/public/shortcodes/giglog_photographers.php'; @@ -52,7 +54,6 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { } static function activate(): void { - require_once __DIR__ . '/includes/admin/register_db_tables.php'; } static function deactivate(): void { -- cgit v1.2.3