Skip to content

Commit

Permalink
Create the database tables if they do not exist when resetting the da…
Browse files Browse the repository at this point in the history
…tabase

Closes xwp#1284
  • Loading branch information
tomjn authored Sep 16, 2021
1 parent fc72b7a commit 8216dc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 8216dc9

Please sign in to comment.