Serious BUG: Plugin Ordering Deactivation Error
-
Just discovered a horrific little bug in your plugin when it comes to deactivating other plugins on the site.
Yes, this has been tested – I had to disable every plugin on my site to track it down.
When your plugin is active, and I deactivate any plugin on my site, it not only deactivates the plugin I wanted to deactivate, but it also deactivates a 2nd “random” plugin from the the site too.
When I say random, it just appears to be random, but actually it is the plugin that appears “last” in the order of plugins to be activated when WordPress loads. I.e. the last plugin in the array taken from the option “active_plugins”.
So, there’s a bug in your forceful “ordering” logic or your freemius insertion logic, and you’re actually dropping 1 extra item OFF the “active_plugins” array, causing a 2nd plugin to be silently deactivated each time another plugin is deactivated on the site. Since plugins get “deactivated” when you upgrade a plugin too, every time you upgrade a plugin on a site, you deactivate another plugin.
#ouch! If you’re going to mess with WordPress core options like this, test the complete bag out of it, please!
Thanks! ??
- The topic ‘Serious BUG: Plugin Ordering Deactivation Error’ is closed to new replies.