Skip to content

Commit

Permalink
Escape attributes added/edited in #8650 (#8787)
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Pressutto <[email protected]>
  • Loading branch information
brettshumaker and gpressutto5 committed May 6, 2024
1 parent 10783bb commit 5134e4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions assets/css/success.rtl.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
.wc-payment-gateway-method-name-woopay-wrapper {
.wc-payment-gateway-method-logo-wrapper {
display: flex;
align-items: center;
flex-wrap: wrap;
line-height: 1;
}

.wc-payment-gateway-method-name-woopay-wrapper img {
.wc-payment-gateway-method-logo-wrapper img {
margin-left: 0.5rem;
padding-top: 4px;
}

.wc-payment-gateway-method-logo-wrapper.wc-payment-bnpl-logo img {
max-height: 30px;
}
5 changes: 5 additions & 0 deletions changelog/fix-escaping-from-8650
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: PR related to another issue already in changelog.


4 changes: 2 additions & 2 deletions includes/class-wc-payments-order-success-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ public function show_bnpl_payment_method_name( $gateway, $payment_method ) {

ob_start();
?>
<div class="wc-payment-gateway-method-logo-wrapper wc-payment-bnpl-logo <?php echo $payment_method->get_id(); ?>">
<img alt="<?php echo $payment_method->get_title(); ?>" src="<?php echo esc_url_raw( $method_logo_url ); ?>">
<div class="wc-payment-gateway-method-logo-wrapper wc-payment-bnpl-logo <?php echo esc_attr( $payment_method->get_id() ); ?>">
<img alt="<?php echo esc_attr( $payment_method->get_title() ); ?>" src="<?php echo esc_url_raw( $method_logo_url ); ?>">
</div>
<?php
return ob_get_clean();
Expand Down

0 comments on commit 5134e4c

Please sign in to comment.