diff --git a/includes/abstracts/abstract-wc-widget.php b/includes/abstracts/abstract-wc-widget.php index b167e4f3ab8..33da5d964c7 100644 --- a/includes/abstracts/abstract-wc-widget.php +++ b/includes/abstracts/abstract-wc-widget.php @@ -5,7 +5,7 @@ * @author WooThemes * @category Widgets * @package WooCommerce/Abstracts - * @version 2.3.0 + * @version 2.5.0 * @extends WP_Widget */ abstract class WC_Widget extends WP_Widget { @@ -128,9 +128,9 @@ abstract class WC_Widget extends WP_Widget { /** * update function. * - * @see WP_Widget->update - * @param array $new_instance - * @param array $old_instance + * @see WP_Widget->update + * @param array $new_instance + * @param array $old_instance * @return array */ public function update( $new_instance, $old_instance ) { @@ -158,7 +158,7 @@ abstract class WC_Widget extends WP_Widget { /** * form function. * - * @see WP_Widget->form + * @see WP_Widget->form * @param array $instance */ public function form( $instance ) { @@ -169,6 +169,7 @@ abstract class WC_Widget extends WP_Widget { foreach ( $this->settings as $key => $setting ) { + $class = isset( $setting['class'] ) ? $setting['class'] : $key; $value = isset( $instance[ $key ] ) ? $instance[ $key ] : $setting['std']; switch ( $setting['type'] ) { @@ -177,7 +178,7 @@ abstract class WC_Widget extends WP_Widget { ?>

- +

- +

- $option_value ) : ?> @@ -207,7 +208,7 @@ abstract class WC_Widget extends WP_Widget { case 'checkbox' : ?>

- /> + />