Skip to content
Snippets Groups Projects
Commit ceef3d5c authored by lechuck's avatar lechuck
Browse files

Fixed thematic usage of method_exists

parent 9a45c319
Branches
Tags v0.1.28
No related merge requests found
Pipeline #57874 passed
......@@ -391,7 +391,7 @@ function thematic_primary_aside() {
dynamic_sidebar( 'primary-aside' );
echo thematic_after_widget_area( 'primary-aside' );
// WordPress 3.4
} elseif ( method_exists ( $wp_customize,'is_preview' ) && $wp_customize->is_preview() ){
} elseif ( is_object($wp_customize) && method_exists ( $wp_customize,'is_preview' ) && $wp_customize->is_preview() ){
echo thematic_before_widget_area( 'primary-aside' );
the_widget('Thematic_Widget_Search', null , $args);
the_widget('WP_Widget_Pages', null , $args);
......@@ -419,7 +419,7 @@ function thematic_secondary_aside() {
dynamic_sidebar( 'secondary-aside' );
echo thematic_after_widget_area( 'secondary-aside' );
// WordPress 3.4
} elseif ( method_exists ( $wp_customize,'is_preview' ) && $wp_customize->is_preview() ){
} elseif ( is_object($wp_customize) && method_exists ( $wp_customize,'is_preview' ) && $wp_customize->is_preview() ){
echo thematic_before_widget_area( 'secondary-aside' );
the_widget('Thematic_Widget_RSS', null, $args);
the_widget('Thematic_Widget_Meta', null, $args);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment