diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-09-04 14:45:57 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-09-04 14:45:57 +0200 |
commit | 82fff1107a46f9cdaab589e619b03a3c76431c4f (patch) | |
tree | 4498e91524c714f2095135b780c2aa16f747df7b | |
parent | f57acecbae89a2782acf6f6b539025385c198366 (diff) | |
download | gigologadmin-82fff1107a46f9cdaab589e619b03a3c76431c4f.tar.gz gigologadmin-82fff1107a46f9cdaab589e619b03a3c76431c4f.tar.bz2 gigologadmin-82fff1107a46f9cdaab589e619b03a3c76431c4f.zip |
Update db tables if needed on every load.
No need to deactivate/activate plugin to get the right version of the
tables.
-rw-r--r-- | giglogadmin.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |