From 4680f5c69666368ec68e8fd7dfdc992ff7ce9768 Mon Sep 17 00:00:00 2001 From: Sertii <36940685+Sreini@users.noreply.github.com> Date: Mon, 16 Feb 2026 07:34:38 +0100 Subject: [PATCH 1/2] release: 3.6.10 --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 565e7c67..aa6e9ea1 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://tinypng.com/ Tags: compress images, compression, image size, page speed, performance Requires at least: 4.0 Tested up to: 6.9 -Stable tag: 3.6.9 +Stable tag: 3.6.10 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html From 9d0a34f9c00cb21e143d613eef5d0f6c3c897346 Mon Sep 17 00:00:00 2001 From: tijmen Date: Sun, 3 May 2026 20:55:50 +0200 Subject: [PATCH 2/2] use register uninstall instead of uninstall.php --- src/class-tiny-plugin.php | 8 ++++++++ tiny-compress-images.php | 5 +++++ uninstall.php | 14 -------------- 3 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 uninstall.php diff --git a/src/class-tiny-plugin.php b/src/class-tiny-plugin.php index facff188..f0d324bb 100644 --- a/src/class-tiny-plugin.php +++ b/src/class-tiny-plugin.php @@ -861,6 +861,14 @@ public function clean_attachment( $post_id ) { $tiny_image->delete_converted_image(); } + /** + * Runs on uninstall + * + * @return void + */ + public static function uninstall() { + Tiny_Apache_Rewrite::uninstall_rules(); + } public function mark_image_as_compressed() { $response = $this->validate_ajax_attachment_request(); diff --git a/tiny-compress-images.php b/tiny-compress-images.php index 4a92b9be..f77bd680 100644 --- a/tiny-compress-images.php +++ b/tiny-compress-images.php @@ -38,3 +38,8 @@ } $tiny_plugin = new Tiny_Plugin(); + +register_uninstall_hook( + __FILE__, + array( 'Tiny_Plugin', 'uninstall' ) +); diff --git a/uninstall.php b/uninstall.php deleted file mode 100644 index 79745b95..00000000 --- a/uninstall.php +++ /dev/null @@ -1,14 +0,0 @@ -