Skip to content

Commit

Permalink
fix: Avoid displaying page content when newtab selected
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiyazdani committed Jul 27, 2024
1 parent 3bfa362 commit 75393fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/checkout/checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
?>

<div class="woocommerce-terms-and-conditions-wrapper woo-additional-terms">
<?php if ( ! empty( $args['page_content'] ) ) : ?>
<div
id="woo-additional-terms-content"
class="woo-additional-terms__content woo-additional-terms__content--<?php echo esc_attr( $args['display_action'] ); ?>"
><?php echo wc_format_content( $args['page_content'] ); ?></div>
<?php endif; ?>
<p class="form-row <?php echo esc_attr( wc_string_to_bool( $args['is_required'] ) ? 'validate-required' : 'novalidate' ); ?>">
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox">
<input
Expand Down

0 comments on commit 75393fa

Please sign in to comment.