From 8216dc9ff001ce4c9842a8fc2c40cec6c002872f Mon Sep 17 00:00:00 2001 From: Tom J Nowell Date: Thu, 16 Sep 2021 17:18:48 +0100 Subject: [PATCH] Create the database tables if they do not exist when resetting the database Closes #1284 --- classes/class-admin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/class-admin.php b/classes/class-admin.php index 947c47af5..2a17d05c2 100644 --- a/classes/class-admin.php +++ b/classes/class-admin.php @@ -673,6 +673,9 @@ public function wp_ajax_reset() { esc_html__( "You don't have sufficient privileges to do this action.", 'stream' ) ); } + + // Create and update the database tables if they do not exist. + $this->plugin->install->check(); $this->erase_stream_records();