Created
October 9, 2012 15:49
-
-
Save neojp/3859669 to your computer and use it in GitHub Desktop.
Wordpress CSS Classes - Widget Context support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://wordpress.org/extend/plugins/widget-css-classes/developers/ | |
// widget-css-classes/includes/widget-css-classes.class.php - Line 97 | |
// if Widget Logic plugin is enabled, use it's callback | |
if ( in_array( 'widget-logic/widget_logic.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
$widget_opt = get_option( $widget_obj['callback_wl_redirect'][0]->option_name ); | |
// if Widget Context plugin is enabled, use it's callback | |
} elseif ( in_array( 'widget-context/widget-context.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
$widget_opt = get_option( $widget_obj['callback_original_wc'][0]->option_name ); | |
// Default callback | |
} else { | |
$widget_opt = get_option( $widget_obj['callback'][0]->option_name ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment