PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | includes/class-wpo-deactivation.php +5 -3 3.2.22 → 4.7.0 View file →
@@ -6,16 +6,18 @@
6 6 class WPO_Deactivation {
7 7
8 8 /**
9 9 * Actions to be performed upon plugin deactivation
10 + *
11 + * @return void
10 12 */
11 - public static function actions() {
13 + public static function actions(): void {
12 14 WP_Optimize()->wpo_cron_deactivate();
13 - WP_Optimize()->get_page_cache()->disable();
15 + WP_Optimize()->get_page_cache()->disable(true);
14 16 WP_Optimize()->get_minify()->plugin_deactivate();
15 17 WP_Optimize()->get_gzip_compression()->disable();
16 18 WP_Optimize()->get_browser_cache()->disable();
17 - WP_Optimize()->get_webp_instance()->empty_htaccess_file();
19 + WP_Optimize()->get_webp_instance()->plugin_deactivate();
18 20 }
19 21 }
20 22
21 23 endif;