Plugin Directory

Changeset 2615295


Ignore:
Timestamp:
10/17/2021 08:42:19 AM (4 years ago)
Author:
payping
Message:

fix details wordpress

Location:
gateway-payping-easy-digital-downloads/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gateway-payping-easy-digital-downloads/trunk/edd-payping.php

    r2611842 r2615295  
    22/*
    33Plugin Name: Gateway PayPing Easy Digital Downloads
    4 Version: 1.0.0
     4Version: 1.1.0
    55Description:  افزونه درگاه پرداخت پی‌پینگ برای Easy Digital Downloads
    66Plugin URI: https://www.payping.ir/
  • gateway-payping-easy-digital-downloads/trunk/gateways/payping.php

    r2074486 r2615295  
    1313                $message = json_encode( $object, JSON_UNESCAPED_UNICODE );
    1414                $label = "Debug".($label ? " ($label): " : ': ');
    15                 echo "<script>console.log(\"$label\", $message);</script>";
    16 
     15                $console_log = esc_html("<script>console.log(\"$label\", $message);</script>");
     16                echo $console_log;
    1717                file_put_contents(EDD_GPPDIR.'/log_payping.txt', $label."\n".$message."\n\n", FILE_APPEND);
    1818            }
     
    216216            $refid = edd_get_payment_meta( $payment->ID, 'payping_refid' );
    217217            if ( $refid ) {
    218                 echo '<tr class="payping-ref-id-row ezp-field ehsaan-me"><td><strong>شماره تراکنش بانکی:</strong></td><td>'.$refid.'</td></tr>';
     218                $res_refid = esc_html('<tr class="payping-ref-id-row ezp-field ehsaan-me"><td><strong>شماره تراکنش بانکی:</strong></td><td>'.$refid.'</td></tr>');
     219                echo $res_refid;
    219220            }
    220221        }
  • gateway-payping-easy-digital-downloads/trunk/includes/toman-currency.php

    r2074486 r2615295  
    88 */
    99if ( ! function_exists('irg_add_toman_currencyP')):
    10 function irg_add_tomain_currencyP( $currencies ) {
     10function irpayping_add_toman_currency( $currencies ) {
    1111    $currencies['IRT'] = 'تومان';
    1212    return $currencies;
    1313}
    1414endif;
    15 add_filter( 'edd_currencies', 'irg_add_tomain_currencyP' );
     15add_filter( 'edd_currencies', 'irpayping_add_toman_currency' );
    1616
    1717/**
     
    4848}
    4949
    50 add_filter( 'edd_irt_currency_filter_after', 'toman_postfixP', 10, 2 );
    51 function toman_postfixP( $price, $did ) {
     50add_filter( 'edd_irt_currency_filter_after', 'irpayping_toman_postfix', 10, 2 );
     51function irpayping_toman_postfix( $price, $did ) {
    5252    return str_replace( 'IRT', 'تومان', $price );
    5353}
    5454
    55 add_filter( 'edd_rial_currency_filter_after', 'rial_postfixP', 10, 2 );
    56 function rial_postfixP( $price, $did ) {
     55add_filter( 'edd_rial_currency_filter_after', 'rialpayping_postfix', 10, 2 );
     56function rialpayping_postfix( $price, $did ) {
    5757    return str_replace( 'RIAL', 'ریال', $price );
    5858}
Note: See TracChangeset for help on using the changeset viewer.