Skip to content

Commit

Permalink
* Fix - Fixing the Undefined variable: col_enabled error.
Browse files Browse the repository at this point in the history
  • Loading branch information
viscosho committed Nov 13, 2019
1 parent d46e75c commit ee85c46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/class-lsx-testimonials-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public function form( $instance ) {
'button_text' => '',
'carousel' => 1,
'featured' => 0,
'col_enabled' => 0,
);

$instance = wp_parse_args( (array) $instance, $defaults );
Expand All @@ -180,7 +181,8 @@ public function form( $instance ) {
$show_image = esc_attr( $instance['show_image'] );
$button_text = esc_attr( $instance['button_text'] );
$carousel = esc_attr( $instance['carousel'] );
$featured = esc_attr( $instance['featured'] ); ?>
$featured = esc_attr( $instance['featured'] );
$col_enabled = esc_attr( $instance['col_enabled'] ); ?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'lsx-testimonials' ); ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"
Expand Down

0 comments on commit ee85c46

Please sign in to comment.