Skip to content

Commit

Permalink
Fix missing default title for payment method. Remove autop for descri…
Browse files Browse the repository at this point in the history
…tion in non block checkout disaply
  • Loading branch information
SuperstrongBE committed Nov 18, 2024
1 parent c874262 commit b05eca0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/woocommerce/gateway/xprcheckout-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public function init_form_fields()
'title' => array(
'title' => __('Title', 'xprcheckout'),
'type' => 'text',
'default' => 'Pay with WebAuth',
'description' => __('This controls the title which the user sees during checkout.', 'xprcheckout'),

'desc_tip' => true,
Expand Down Expand Up @@ -204,7 +205,7 @@ public function payment_fields()
$desc .= $this->description;
$desc = trim($desc);
}
$text = esc_html(wpautop(wp_kses_post($desc)));
$text = esc_html(wp_kses_post($desc));
echo esc_attr(printf(
'%s',
$text // it can simply be a normal variable
Expand All @@ -229,7 +230,7 @@ public function payment_scripts()
wp_enqueue_script_module('xprcheckout_public');

wp_enqueue_style('xprcheckout_public_style', XPRCHECKOUT_ROOT_URL . 'dist/checkout/build/app.css?v='. uniqid(),[], time());
// wp_enqueue_style('xprcheckout_layout_style', XPRCHECKOUT_ROOT_URL . 'dist/public/public.css?v=' . uniqid(),[], time(), true);

}

/**
Expand Down

0 comments on commit b05eca0

Please sign in to comment.