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

Conflict with Premise #18

Closed jimahlin closed 10 years ago

jimahlin commented 10 years ago

When I have this plugin activated, all of my Premise landing pages are a blank white page.

wpsmith commented 10 years ago

Do you have any debug information?

jimahlin commented 10 years ago

I don't.

wpsmith commented 10 years ago

The issue is actually Premise's fault. Within the Premise_Theme class they filter the template, stylesheet, theme_root, and stylesheet_directory_uri. Thus. this causes the landing page to break. So Premise_Base class hooks into setup_theme which fires before after_theme_setup thus circumventing Genesis which properly hooks into after_theme_setup. So, if there are any Genesis plugins that look for a Genesis function, it could potentially break.

Personally, I believe the solution needs to properly stem from Premise and @copyblogger since their langing pages do not allow widgets. Within premise.php and Premise_Base::setup_theme(), I would add: $wp_filter['widgets_init'] = array();

But I am going to implement something as well.

And the function:

function clear_widgets_init() {
    global $wp_filter;
    $wp_filter['widgets_init'] = array();

}