Skip to content

Commit a134785

Browse files
committed
Fixing the 2 escaping issues.
1 parent 07d6626 commit a134785

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

includes/classes/class-forms-update.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,11 @@ public function shortcode_details( $post ) {
326326
public function help_details( $post ) {
327327
?>
328328
<div class="awesome-meta-admin">
329-
<?php echo wp_kses_post( esc_html__( 'Email and Full Name field is added automatically, no need to include that.<br /><br />
329+
<?php echo wp_kses_post( __( 'Email and Full Name field is added automatically, no need to include that.<br /><br />
330330
To make an input field compulsory add <code> required="required" </code> to the shortcode <br /><br />
331331
It should look like this <code> [text name="Full Name" required="required" ]</code><br /><br />' ) ) ; ?>
332332

333-
<?php echo wp_kses_post( esc_html__( '<b style="color:red;">Warning:</b> Using the file input field may cause data overload on your server.
333+
<?php echo wp_kses_post( __( '<b style="color:red;">Warning:</b> Using the file input field may cause data overload on your server.
334334
Be sure you have enough server space before using it. You also have the ability to set file upload limits.' ) ) ; ?>
335335
</div>
336336
<?php
@@ -375,7 +375,7 @@ public function form_data() {
375375
<option value="USD" ' . $this->is_option_selected( 'USD', $this->meta['currency'] ) . '>' . esc_html__('US Dollars', 'pff-paystack') . '</option>
376376
</select>';
377377

378-
$html[] = '<small>' . esc_html__('Ensure you are activated for the currency you are selecting. Check <a href="https://support.paystack.com/hc/en-us/articles/360009973799-Can-I-accept-payments-in-US-Dollars-USD" target="_blank">here</a> for more information.', 'pff-paystack') . '</small>';
378+
$html[] = wp_kses_post( '<small>' . __('Ensure you are activated for the currency you are selecting. Check <a href="https://support.paystack.com/hc/en-us/articles/360009973799-Can-I-accept-payments-in-US-Dollars-USD" target="_blank">here</a> for more information.', 'pff-paystack') . '</small>' );
379379
$html[] = '<p>' . esc_html__('Amount to be paid(Set 0 for customer input):', 'pff-paystack') . '</p>';
380380
$html[] = '<input type="number" min="0" name="_amount" value="' . $this->meta['amount'] . '" class="widefat pf-number" />';
381381
if ($this->meta['minimum'] == 1) {
@@ -392,11 +392,11 @@ public function form_data() {
392392
$html[] = '<input type="text" name="_paybtn" value="' . $this->meta['paybtn'] . '" class="widefat" />';
393393
$html[] = '<p>' . esc_html__('Add Extra Charge:', 'pff-paystack') . '</p>';
394394

395-
$html[] = '<select class="form-control" name="_txncharge" id="parent_id" style="width:100%;">
395+
$html[] = wp_kses_post( '<select class="form-control" name="_txncharge" id="parent_id" style="width:100%;">
396396
<option value="merchant" ' . $this->is_option_selected('merchant', $this->meta['txncharge']) . '> ' . esc_html__('No, do not add', 'pff-paystack') . '</option>
397397
<option value="customer" ' . $this->is_option_selected('customer', $this->meta['txncharge']) . '> ' . esc_html__('Yes, add it', 'pff-paystack') . '</option>
398398
</select>
399-
<br><small>' . esc_html__('This allows you include an extra charge to cushion the effect of the transaction fee. <a href="', 'pff-paystack') . get_admin_url() . "edit.php?post_type=paystack_form&page=class-paystack-forms-admin.php#paystack_setting_fees" . '">' . esc_html__('Configure', 'pff-paystack') . '</a></small>';
399+
<br><small>' . __('This allows you include an extra charge to cushion the effect of the transaction fee. <a href="', 'pff-paystack') . get_admin_url() . "edit.php?post_type=paystack_form&page=class-paystack-forms-admin.php#paystack_setting_fees" . '">' . esc_html__('Configure', 'pff-paystack') . '</a></small>' );
400400
$html[] = '<p>' . esc_html__('User logged In:', 'pff-paystack') . '</p>';
401401
$html[] = '<select class="form-control" name="_loggedin" id="parent_id" style="width:100%;">
402402
<option value="no" ' . $this->is_option_selected('no', $this->meta['loggedin']) . '> ' . esc_html__('User must not be logged in', 'pff-paystack') . '</option>
@@ -508,7 +508,7 @@ public function quantity_data() {
508508
$html[] = '<p>' . esc_html__('Max payable quantity:', 'pff-paystack') . '</p>';
509509
$html[] = '<input type="number" min="1" name="_quantity" value="' . $this->meta['quantity'] . '" class="widefat pf-number" /><small>' . esc_html__('Your users only get to pay in quantities if the from amount is not set to zero and recur is set to none.', 'pff-paystack') . '</small>';
510510
$html[] = '<p>' . esc_html__('Unit of quantity:', 'pff-paystack') . '</p>';
511-
$html[] = '<input type="text" name="_quantityunit" value="' . $this->meta['quantityunit'] . '" class="widefat" /><small>' . esc_html__('What is the unit of this quantity? Default is <code>Quantity</code>.', 'pff-paystack') . '</small>';
511+
$html[] = wp_kses_post( '<input type="text" name="_quantityunit" value="' . $this->meta['quantityunit'] . '" class="widefat" /><small>' . __('What is the unit of this quantity? Default is <code>Quantity</code>.', 'pff-paystack') . '</small>' );
512512

513513
$html[] = '<p>' . esc_html__('Inventory Payment:', 'pff-paystack') . '</p>';
514514
$html[] = '<select class="form-control" name="_useinventory" style="width:100%;">

0 commit comments

Comments
 (0)