Widgets don't get re-enabled when plugin reactivated
When you deactivate and reactivate (or upgrade) a plugin, it’s widget is disabled so you have to go to Widgets and re-enable it.
Rather than the Widget class disable a widget when its plugin is deactivated, it might be better to "gray it out" and hide it from view, but otherwise keep its "enabled" status as true. Then when the plugin is active again, the widget is shown again. Note that this is different to uninstalling a plugin, which completely removes the widget.... which leads to another problem: Upgrading a plugin won't re-enable its widget because the upgrade process first uninstalls the plugin.
Rather than the Widget class disable a widget when its plugin is deactivated, it might be better to "gray it out" and hide it from view, but otherwise keep its "enabled" status as true. Then when the plugin is active again, the widget is shown again. Note that this is different to uninstalling a plugin, which completely removes the widget.... which leads to another problem: Upgrading a plugin won't re-enable its widget because the upgrade process first uninstalls the plugin.
Leave a comment
on 2010-02-11 14:34 *
By nick_ramsay
Related association with ticket #103 was added
I gave this a really good go, but to no avail. The biggest problem is that when you turn off all the plugins, the Widgets plugin itself gets turned off. That, combined with cached data about which plugins are enabled or not, makes it all very tricky.
The best solution would be to include Widget Management by default in Hotaru, just like Plugin Management, so that's the new plan if there are no objections. I'll aim for Hotaru 1.2 to do it.
The best solution would be to include Widget Management by default in Hotaru, just like Plugin Management, so that's the new plan if there are no objections. I'll aim for Hotaru 1.2 to do it.
This appears to be magically fixed in Hotaru 1.3. There were some issues with detecting whether a widget's plugin was active or not after reactivating because of caching. Fixing that seems to have solved this problem. Marked as "ready to test".
on 2010-11-26 11:06 *
By
Are we done with testing this ?