Skip to content

Commit 28fb55d

Browse files
committed
Fix inability to create a temporary table when it exists after previous operations.
1 parent 33fd1c7 commit 28fb55d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

readme.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Yes, you can!
4242
= 2.0.0 =
4343
* Dropped support for PHP 7.0. The minimum required PHP version is now 7.2.
4444
* Fixed kagg_generator_comment_max_nesting_level filter name.
45+
* Fixed inability to create a temporary table when it exists after previous operations.
46+
* Fixed deprecation errors with PHP 8.4.
4547
* Tested with WordPress 6.7.
4648
* Tested with PHP 8.4.
4749

src/php/Settings.php

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

675675
$queries = [
676676
'START TRANSACTION',
677+
"DROP TABLE {$table}_copy",
677678
"CREATE TABLE {$table}_copy LIKE $table",
678679
$wpdb->prepare(
679680
"INSERT INTO {$table}_copy

0 commit comments

Comments
 (0)