PluginProbe
Search Atlas SEO – OTTO AI SEO Automation for WordPress / 2.7.2
Search Atlas SEO – OTTO AI SEO Automation for WordPress v2.7.2
2.7.1 2.7.2 2.7.0 2.6.26 2.6.25 2.6.24 2.6.23 2.6.22 2.6.21 2.6.20 2.6.19 2.6.18 2.6.17 2.6.16 2.6.15 2.6.14 2.6.13 2.6.12 2.6.11 2.6.10 2.6.9 2.6.8 2.6.7 2.6.6 2.6.5 All 141 releases
← All changes | includes/class-metasync-deactivator.php +10 -2 2.6.8 → 2.7.2 View file →
@@ -43,10 +43,18 @@
43 43 foreach (Metasync_Activator::$cron_hooks as $hook) {
44 44 wp_unschedule_hook($hook);
45 45 }
46 46
47 - flush_rewrite_rules();
47 + // Soft flush only (no .htaccess rewrite). A hard flush calls
48 + // save_mod_rewrite_rules(), which opens the site's root .htaccess with an
49 + // exclusive flock(). On hosts whose cache/optimizer layer also holds that
50 + // lock (e.g. SiteGround + SG Optimizer), the deactivation request blocks on
51 + // the lock until max_execution_time and the host returns a 500 — so the
52 + // plugin never deactivates. MetaSync registers its rewrite rules via
53 + // add_rewrite_rule (stored in the `rewrite_rules` option, NOT in .htaccess),
54 + // so a soft flush fully clears them without ever touching the file.
55 + flush_rewrite_rules(false);
48 56
49 - // Reset WP-299 one-time cleanup flag so it re-runs on next activation/update
57 + // Reset one-time cleanup flag so it re-runs on next activation/update
50 58 delete_option('metasync_wp299_cron_cleanup_done');
51 59 }
52 60 }