Skip to content

Commit

Permalink
Merge pull request #20 from kagg-design/V2.0.1
Browse files Browse the repository at this point in the history
Fix error on deleting a temporary table.
  • Loading branch information
kagg-design authored Dec 28, 2024
2 parents 494bd80 + d19b9fc commit 118b52d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: KAGG Generator
* Plugin URI: https://wordpress.org/plugins/kagg-fast-post-generator/
* Description: Generates posts/pages. Useful to generate millions of records in wp_posts table.
* Version: 2.0.0
* Version: 2.0.1
* Requires at least: 5.3
* Requires PHP: 7.2
* Author: KAGG Design
Expand All @@ -35,7 +35,7 @@
/**
* Plugin version.
*/
const KAGG_GENERATOR_VERSION = '2.0.0';
const KAGG_GENERATOR_VERSION = '2.0.1';

/**
* Path to the plugin dir.
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: kaggdesign
Tags: generate posts, generate pages, development, bulk generate
Requires at least: 5.3
Tested up to: 6.7
Stable tag: 2.0.0
Stable tag: 2.0.1
Requires PHP: 7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -39,6 +39,9 @@ Yes, you can!

== Changelog ==

= 2.0.1 =
* Fixed error on deleting a temporary table.

= 2.0.0 =
* Dropped support for PHP 7.0. The minimum required PHP version is now 7.2.
* Fixed kagg_generator_comment_max_nesting_level filter name.
Expand Down
2 changes: 1 addition & 1 deletion src/php/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ private function delete_items( Item $item_handler ): bool {

$queries = [
'START TRANSACTION',
"DROP TABLE {$table}_copy",
"DROP TABLE IF EXISTS {$table}_copy",
"CREATE TABLE {$table}_copy LIKE $table",
$wpdb->prepare(
"INSERT INTO {$table}_copy
Expand Down

0 comments on commit 118b52d

Please sign in to comment.