Skip to content

Commit 118b52d

Browse files
authored
Merge pull request #20 from kagg-design/V2.0.1
Fix error on deleting a temporary table.
2 parents 494bd80 + d19b9fc commit 118b52d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: KAGG Generator
1111
* Plugin URI: https://wordpress.org/plugins/kagg-fast-post-generator/
1212
* Description: Generates posts/pages. Useful to generate millions of records in wp_posts table.
13-
* Version: 2.0.0
13+
* Version: 2.0.1
1414
* Requires at least: 5.3
1515
* Requires PHP: 7.2
1616
* Author: KAGG Design
@@ -35,7 +35,7 @@
3535
/**
3636
* Plugin version.
3737
*/
38-
const KAGG_GENERATOR_VERSION = '2.0.0';
38+
const KAGG_GENERATOR_VERSION = '2.0.1';
3939

4040
/**
4141
* Path to the plugin dir.

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: kaggdesign
33
Tags: generate posts, generate pages, development, bulk generate
44
Requires at least: 5.3
55
Tested up to: 6.7
6-
Stable tag: 2.0.0
6+
Stable tag: 2.0.1
77
Requires PHP: 7.2
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -39,6 +39,9 @@ Yes, you can!
3939

4040
== Changelog ==
4141

42+
= 2.0.1 =
43+
* Fixed error on deleting a temporary table.
44+
4245
= 2.0.0 =
4346
* Dropped support for PHP 7.0. The minimum required PHP version is now 7.2.
4447
* Fixed kagg_generator_comment_max_nesting_level filter name.

src/php/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ private function delete_items( Item $item_handler ): bool {
674674

675675
$queries = [
676676
'START TRANSACTION',
677-
"DROP TABLE {$table}_copy",
677+
"DROP TABLE IF EXISTS {$table}_copy",
678678
"CREATE TABLE {$table}_copy LIKE $table",
679679
$wpdb->prepare(
680680
"INSERT INTO {$table}_copy

0 commit comments

Comments
 (0)