Skip to content

Commit

Permalink
Customizer: fixes merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Iloro committed Jun 13, 2018
1 parent d9fd020 commit d787932
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/widgets/simple-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ function widget( $args, $instance ) {
}

$jsp = Jetpack_Simple_Payments::getInstance();
echo $jsp->parse_shortcode( $attrs );
$simple_payments_button = $jsp->parse_shortcode( $attrs );
if ( is_null( $simple_payments_button ) && ! is_customize_preview() ) {
return;
}

echo $simple_payments_button;
}

echo '</div><!--simple-payments-->';
Expand Down

0 comments on commit d787932

Please sign in to comment.