wpsmith / genesis-sandbox-featured-content-widget

Genesis Sandbox Featured Content Widget. Based on Nick Croft's Genesis Featured Widget Amplified for additional functionality which allows support for custom post types, taxonomies, and extends the flexibility of the widget via action hooks to allow the elements to be re-positioned or other elements to be added.
39 stars 21 forks source link

Resolve issue #43 - Fatal error due to Genesis not being active #56

Closed davidrgreen closed 7 years ago

davidrgreen commented 9 years ago

The plugin was triggering a fatal error and breaking a site whenever you try activating it without Genesis or a Genesis child theme active, and it did the same when you switched themes while the plugin was active.

Now it will instead deactivate the plugin and trigger an admin notice error message to notify the user that the plugin can't be used without Genesis. It does this when activating the plugin and when the plugin is active and you switch to a non-Genesis theme.