Skip to content

Commit

Permalink
Try to fix bug from CMB2#52
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Oct 28, 2016
1 parent e39bfd9 commit 159566d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion widgets/widget-example.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public static function get_widget( $atts ) {
$atts = shortcode_atts(
array(
// Ensure variables
'instance' => array(),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
Expand All @@ -173,7 +174,7 @@ public static function get_widget( $atts ) {

$instance = shortcode_atts(
self::$defaults,
isset( $atts['instance'] ) ? (array) $atts['instance'] : array(),
! empty( $atts['instance'] ) ? (array) $atts['instance'] : array(),
self::$shortcode
);

Expand Down

0 comments on commit 159566d

Please sign in to comment.