Plugin Directory

Changeset 2329004


Ignore:
Timestamp:
06/23/2020 05:36:00 AM (6 years ago)
Author:
postpay
Message:

v0.2.1

Location:
postpay
Files:
4 deleted
13 edited
25 copied

Legend:

Unmodified
Added
Removed
  • postpay/tags/0.2.1/includes/gateways/class-wc-postpay-gateway.php

    r2314090 r2329004  
    8585     */
    8686    public function payment_fields() {
    87         if ( WC_Postpay::PAYMENT_GATEWAY_ID !== $this->id ) {
    88             wc_postpay_script( 'wc-postpay-js' );
    89         }
     87        wc_postpay_script( 'wc-postpay-js' );
    9088        wc_get_postpay_template( 'payment-fields.php', array( 'gateway' => $this ) );
    9189    }
     
    217215    public function load_scripts() {
    218216        if ( $this->is_available() && is_checkout() && ! empty( $_GET[ $this->token_param ] ) ) {
     217            wc_postpay_js( $this->settings );
     218
    219219            wc_postpay_script(
    220220                'wc-postpay-checkout',
  • postpay/tags/0.2.1/includes/wc-postpay-functions.php

    r2267104 r2329004  
    55
    66defined( 'ABSPATH' ) || exit;
     7
     8/**
     9 * Get Postpay template.
     10 *
     11 * @param string $template_name Template name.
     12 * @param array  $args          Arguments. (default: array).
     13 * @param string $template_path Template path. (default: '').
     14 */
     15function wc_get_postpay_template( $template_name, $args = array(), $template_path = '' ) {
     16    wc_get_template( $template_name, $args, $template_path, WC_POSTPAY_DIR_PATH . 'templates/' );
     17}
    718
    819/**
     
    2334
    2435/**
    25  * Get Postpay template.
     36 * Register and load postpay-js script.
    2637 *
    27  * @param string $template_name Template name.
    28  * @param array  $args          Arguments. (default: array).
    29  * @param string $template_path Template path. (default: '').
     38 * @param array $settings Gateway settings.
    3039 */
    31 function wc_get_postpay_template( $template_name, $args = array(), $template_path = '' ) {
    32     wc_get_template( $template_name, $args, $template_path, WC_POSTPAY_DIR_PATH . 'templates/' );
     40function wc_postpay_js( $settings ) {
     41    wc_postpay_script( 'wc-postpay-js' );
     42
     43    wc_postpay_script(
     44        'wc-postpay-init',
     45        array(
     46            'sandbox'    => 'yes' === $settings['sandbox'],
     47            'merchantId' => $settings['merchant_id'],
     48            'theme'      => $settings['theme'] ?? 'light',
     49        )
     50    );
    3351}
  • postpay/tags/0.2.1/languages/postpay-es_ES.po

    r2314090 r2329004  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.2.0\n"
     5"Project-Id-Version: WooCommerce Postpay Payment Gateway 0.2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n"
    77"Language-Team: Spanish (Spain)\n"
     
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"X-Generator: Poedit 2.3\n"
    12 "POT-Creation-Date: 2020-05-27T07:04:33+00:00\n"
    13 "PO-Revision-Date: 2020-05-27 07:07+0000\n"
     12"POT-Creation-Date: 2020-06-22T08:48:35+00:00\n"
     13"PO-Revision-Date: 2020-06-22 08:50+0000\n"
    1414"X-Domain: postpay\n"
    1515"Last-Translator: admin <dani@postpay.io>\n"
     
    4545
    4646#. translators: %1$s: transaction id %2$s: error code
    47 #: includes/gateways/class-wc-postpay-gateway.php:144
     47#: includes/gateways/class-wc-postpay-gateway.php:142
    4848msgid "Postpay capture failed. ID: %1$s. Code: %2$s."
    4949msgstr "La captura con Postpay falló. ID: %1$s. Código: %2$s."
    5050
    51 #: includes/gateways/class-wc-postpay-gateway.php:153
     51#: includes/gateways/class-wc-postpay-gateway.php:151
    5252msgid "Postpay capture error."
    5353msgstr "Postpay error de captura."
    5454
    5555#. translators: %1$s: order status %2$s: transaction id
    56 #: includes/gateways/class-wc-postpay-gateway.php:172
     56#: includes/gateways/class-wc-postpay-gateway.php:170
    5757msgid "Postpay order %1$s. ID: %2$s."
    5858msgstr "Postpay pedido %1$s. ID: %2$s."
    5959
    60 #: includes/gateways/class-wc-postpay-gateway.php:179
     60#: includes/gateways/class-wc-postpay-gateway.php:177
    6161msgid "Postpay order cancelled."
    6262msgstr "Postpay pedido cancelado."
    6363
    6464#. translators: %1$s: transaction id %2$s: error code
    65 #: includes/gateways/class-wc-postpay-gateway.php:203
     65#: includes/gateways/class-wc-postpay-gateway.php:201
    6666msgid "Postpay refund failed. ID: %1$s. Code: %2$s."
    6767msgstr "La devolución con Postpay falló. ID: %1$s. Código: %2$s."
  • postpay/tags/0.2.1/languages/postpay.pot

    r2314090 r2329004  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.2.0\n"
     5"Project-Id-Version: WooCommerce Postpay Payment Gateway 0.2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2020-05-27T07:04:33+00:00\n"
     12"POT-Creation-Date: 2020-06-22T08:48:35+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
     
    4242
    4343#. translators: %1$s: transaction id %2$s: error code
    44 #: includes/gateways/class-wc-postpay-gateway.php:144
     44#: includes/gateways/class-wc-postpay-gateway.php:142
    4545msgid "Postpay capture failed. ID: %1$s. Code: %2$s."
    4646msgstr ""
    4747
    48 #: includes/gateways/class-wc-postpay-gateway.php:153
     48#: includes/gateways/class-wc-postpay-gateway.php:151
    4949msgid "Postpay capture error."
    5050msgstr ""
    5151
    5252#. translators: %1$s: order status %2$s: transaction id
    53 #: includes/gateways/class-wc-postpay-gateway.php:172
     53#: includes/gateways/class-wc-postpay-gateway.php:170
    5454msgid "Postpay order %1$s. ID: %2$s."
    5555msgstr ""
    5656
    57 #: includes/gateways/class-wc-postpay-gateway.php:179
     57#: includes/gateways/class-wc-postpay-gateway.php:177
    5858msgid "Postpay order cancelled."
    5959msgstr ""
    6060
    6161#. translators: %1$s: transaction id %2$s: error code
    62 #: includes/gateways/class-wc-postpay-gateway.php:203
     62#: includes/gateways/class-wc-postpay-gateway.php:201
    6363msgid "Postpay refund failed. ID: %1$s. Code: %2$s."
    6464msgstr ""
  • postpay/tags/0.2.1/postpay.php

    r2314090 r2329004  
    22/**
    33 * Plugin Name: WooCommerce Postpay Payment Gateway
    4  * Version: 0.2.0
     4 * Version: 0.2.1
    55 * Plugin URI: https://github.com/postpayio/woocommerce
    66 * Description: Buy now and pay later with zero interest and zero fees.
     
    122122     */
    123123    public function load_scripts() {
    124         if ( $this->enabled ) {
    125             wc_postpay_script( 'wc-postpay-js' );
    126 
    127             wc_postpay_script(
    128                 'wc-postpay-init',
    129                 array(
    130                     'sandbox'    => 'yes' === $this->settings['sandbox'],
    131                     'merchantId' => $this->settings['merchant_id'],
    132                     'theme'      => $this->settings['theme'] ?? 'light',
    133                 )
    134             );
     124        if ( $this->enabled && ! is_checkout() ) {
     125            wc_postpay_js( $this->settings );
    135126        }
    136127    }
  • postpay/tags/0.2.1/readme.txt

    r2314090 r2329004  
    44Tested up to: 5.4
    55Requires PHP: 5.6
    6 Stable tag: 0.2.0
    7 Version: 0.2.0
     6Stable tag: 0.2.1
     7Version: 0.2.1
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7373== Changelog ==
    7474
     75= 0.2.1 - 2020-06-22 =
     76* Improved checkout widgets settings
     77* Added widgets locale attribute
     78
    7579= 0.2.0 - 2020-05-29 =
    7680* Added Pay Now payment gateway
  • postpay/tags/0.2.1/templates/payment-fields.php

    r2314090 r2329004  
    77?>
    88
    9 <?php if ( $gateway->widget ) : ?>
     9<?php if ( $gateway->widget && ! isset( $_GET['pay_for_order'] ) ) : ?>
    1010    <div
    11         class="postpay-widget"
     11        class="<?php echo $gateway->id; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>-widget"
    1212        data-type="payment-summary"
    1313        data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1414        data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1515        data-country="<?php echo WC()->customer->get_billing_country(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
     16        data-locale="<?php echo get_locale(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1617        data-hide-if-invalid="<?php echo $gateway->css; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    17         <?php if ( WC_Postpay::PAYMENT_GATEWAY_ID !== $gateway->id ) : ?>
    1818        data-merchant-id="<?php echo $gateway->get_option( 'merchant_id' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1919        data-sandbox="<?php echo $gateway->sandbox; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    2020        data-theme="<?php echo $gateway->theme; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    21         <?php endif; ?>
    2221        <?php if ( null !== $gateway::NUM_INSTALMENTS ) : ?>
    2322        data-num-instalments="<?php echo $gateway::NUM_INSTALMENTS; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
     
    2827    jQuery( document ).ready(
    2928        function( $ ) {
    30             postpay.ui.refresh();
     29            postpay.ui.refresh( '.<?php echo $gateway->id; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>-widget' );
    3130        }
    3231    );
  • postpay/tags/0.2.1/templates/widgets/cart.php

    r2299357 r2329004  
    1212    data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1313    data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
     14    data-locale="<?php echo get_locale(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1415></div>
  • postpay/tags/0.2.1/templates/widgets/product.php

    r2314090 r2329004  
    1616    data-amount="<?php echo WC_Postpay_Adapter::decimal( $price )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1717    data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
     18    data-locale="<?php echo get_locale(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1819></div>
  • postpay/trunk/includes/gateways/class-wc-postpay-gateway.php

    r2314090 r2329004  
    8585     */
    8686    public function payment_fields() {
    87         if ( WC_Postpay::PAYMENT_GATEWAY_ID !== $this->id ) {
    88             wc_postpay_script( 'wc-postpay-js' );
    89         }
     87        wc_postpay_script( 'wc-postpay-js' );
    9088        wc_get_postpay_template( 'payment-fields.php', array( 'gateway' => $this ) );
    9189    }
     
    217215    public function load_scripts() {
    218216        if ( $this->is_available() && is_checkout() && ! empty( $_GET[ $this->token_param ] ) ) {
     217            wc_postpay_js( $this->settings );
     218
    219219            wc_postpay_script(
    220220                'wc-postpay-checkout',
  • postpay/trunk/includes/wc-postpay-functions.php

    r2267104 r2329004  
    55
    66defined( 'ABSPATH' ) || exit;
     7
     8/**
     9 * Get Postpay template.
     10 *
     11 * @param string $template_name Template name.
     12 * @param array  $args          Arguments. (default: array).
     13 * @param string $template_path Template path. (default: '').
     14 */
     15function wc_get_postpay_template( $template_name, $args = array(), $template_path = '' ) {
     16    wc_get_template( $template_name, $args, $template_path, WC_POSTPAY_DIR_PATH . 'templates/' );
     17}
    718
    819/**
     
    2334
    2435/**
    25  * Get Postpay template.
     36 * Register and load postpay-js script.
    2637 *
    27  * @param string $template_name Template name.
    28  * @param array  $args          Arguments. (default: array).
    29  * @param string $template_path Template path. (default: '').
     38 * @param array $settings Gateway settings.
    3039 */
    31 function wc_get_postpay_template( $template_name, $args = array(), $template_path = '' ) {
    32     wc_get_template( $template_name, $args, $template_path, WC_POSTPAY_DIR_PATH . 'templates/' );
     40function wc_postpay_js( $settings ) {
     41    wc_postpay_script( 'wc-postpay-js' );
     42
     43    wc_postpay_script(
     44        'wc-postpay-init',
     45        array(
     46            'sandbox'    => 'yes' === $settings['sandbox'],
     47            'merchantId' => $settings['merchant_id'],
     48            'theme'      => $settings['theme'] ?? 'light',
     49        )
     50    );
    3351}
  • postpay/trunk/languages/postpay-es_ES.po

    r2314090 r2329004  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.2.0\n"
     5"Project-Id-Version: WooCommerce Postpay Payment Gateway 0.2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n"
    77"Language-Team: Spanish (Spain)\n"
     
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"X-Generator: Poedit 2.3\n"
    12 "POT-Creation-Date: 2020-05-27T07:04:33+00:00\n"
    13 "PO-Revision-Date: 2020-05-27 07:07+0000\n"
     12"POT-Creation-Date: 2020-06-22T08:48:35+00:00\n"
     13"PO-Revision-Date: 2020-06-22 08:50+0000\n"
    1414"X-Domain: postpay\n"
    1515"Last-Translator: admin <dani@postpay.io>\n"
     
    4545
    4646#. translators: %1$s: transaction id %2$s: error code
    47 #: includes/gateways/class-wc-postpay-gateway.php:144
     47#: includes/gateways/class-wc-postpay-gateway.php:142
    4848msgid "Postpay capture failed. ID: %1$s. Code: %2$s."
    4949msgstr "La captura con Postpay falló. ID: %1$s. Código: %2$s."
    5050
    51 #: includes/gateways/class-wc-postpay-gateway.php:153
     51#: includes/gateways/class-wc-postpay-gateway.php:151
    5252msgid "Postpay capture error."
    5353msgstr "Postpay error de captura."
    5454
    5555#. translators: %1$s: order status %2$s: transaction id
    56 #: includes/gateways/class-wc-postpay-gateway.php:172
     56#: includes/gateways/class-wc-postpay-gateway.php:170
    5757msgid "Postpay order %1$s. ID: %2$s."
    5858msgstr "Postpay pedido %1$s. ID: %2$s."
    5959
    60 #: includes/gateways/class-wc-postpay-gateway.php:179
     60#: includes/gateways/class-wc-postpay-gateway.php:177
    6161msgid "Postpay order cancelled."
    6262msgstr "Postpay pedido cancelado."
    6363
    6464#. translators: %1$s: transaction id %2$s: error code
    65 #: includes/gateways/class-wc-postpay-gateway.php:203
     65#: includes/gateways/class-wc-postpay-gateway.php:201
    6666msgid "Postpay refund failed. ID: %1$s. Code: %2$s."
    6767msgstr "La devolución con Postpay falló. ID: %1$s. Código: %2$s."
  • postpay/trunk/languages/postpay.pot

    r2314090 r2329004  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.2.0\n"
     5"Project-Id-Version: WooCommerce Postpay Payment Gateway 0.2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2020-05-27T07:04:33+00:00\n"
     12"POT-Creation-Date: 2020-06-22T08:48:35+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
     
    4242
    4343#. translators: %1$s: transaction id %2$s: error code
    44 #: includes/gateways/class-wc-postpay-gateway.php:144
     44#: includes/gateways/class-wc-postpay-gateway.php:142
    4545msgid "Postpay capture failed. ID: %1$s. Code: %2$s."
    4646msgstr ""
    4747
    48 #: includes/gateways/class-wc-postpay-gateway.php:153
     48#: includes/gateways/class-wc-postpay-gateway.php:151
    4949msgid "Postpay capture error."
    5050msgstr ""
    5151
    5252#. translators: %1$s: order status %2$s: transaction id
    53 #: includes/gateways/class-wc-postpay-gateway.php:172
     53#: includes/gateways/class-wc-postpay-gateway.php:170
    5454msgid "Postpay order %1$s. ID: %2$s."
    5555msgstr ""
    5656
    57 #: includes/gateways/class-wc-postpay-gateway.php:179
     57#: includes/gateways/class-wc-postpay-gateway.php:177
    5858msgid "Postpay order cancelled."
    5959msgstr ""
    6060
    6161#. translators: %1$s: transaction id %2$s: error code
    62 #: includes/gateways/class-wc-postpay-gateway.php:203
     62#: includes/gateways/class-wc-postpay-gateway.php:201
    6363msgid "Postpay refund failed. ID: %1$s. Code: %2$s."
    6464msgstr ""
  • postpay/trunk/postpay.php

    r2314090 r2329004  
    22/**
    33 * Plugin Name: WooCommerce Postpay Payment Gateway
    4  * Version: 0.2.0
     4 * Version: 0.2.1
    55 * Plugin URI: https://github.com/postpayio/woocommerce
    66 * Description: Buy now and pay later with zero interest and zero fees.
     
    122122     */
    123123    public function load_scripts() {
    124         if ( $this->enabled ) {
    125             wc_postpay_script( 'wc-postpay-js' );
    126 
    127             wc_postpay_script(
    128                 'wc-postpay-init',
    129                 array(
    130                     'sandbox'    => 'yes' === $this->settings['sandbox'],
    131                     'merchantId' => $this->settings['merchant_id'],
    132                     'theme'      => $this->settings['theme'] ?? 'light',
    133                 )
    134             );
     124        if ( $this->enabled && ! is_checkout() ) {
     125            wc_postpay_js( $this->settings );
    135126        }
    136127    }
  • postpay/trunk/readme.txt

    r2314090 r2329004  
    44Tested up to: 5.4
    55Requires PHP: 5.6
    6 Stable tag: 0.2.0
    7 Version: 0.2.0
     6Stable tag: 0.2.1
     7Version: 0.2.1
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7373== Changelog ==
    7474
     75= 0.2.1 - 2020-06-22 =
     76* Improved checkout widgets settings
     77* Added widgets locale attribute
     78
    7579= 0.2.0 - 2020-05-29 =
    7680* Added Pay Now payment gateway
  • postpay/trunk/templates/payment-fields.php

    r2314090 r2329004  
    77?>
    88
    9 <?php if ( $gateway->widget ) : ?>
     9<?php if ( $gateway->widget && ! isset( $_GET['pay_for_order'] ) ) : ?>
    1010    <div
    11         class="postpay-widget"
     11        class="<?php echo $gateway->id; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>-widget"
    1212        data-type="payment-summary"
    1313        data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1414        data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1515        data-country="<?php echo WC()->customer->get_billing_country(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
     16        data-locale="<?php echo get_locale(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1617        data-hide-if-invalid="<?php echo $gateway->css; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    17         <?php if ( WC_Postpay::PAYMENT_GATEWAY_ID !== $gateway->id ) : ?>
    1818        data-merchant-id="<?php echo $gateway->get_option( 'merchant_id' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1919        data-sandbox="<?php echo $gateway->sandbox; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    2020        data-theme="<?php echo $gateway->theme; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    21         <?php endif; ?>
    2221        <?php if ( null !== $gateway::NUM_INSTALMENTS ) : ?>
    2322        data-num-instalments="<?php echo $gateway::NUM_INSTALMENTS; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
     
    2827    jQuery( document ).ready(
    2928        function( $ ) {
    30             postpay.ui.refresh();
     29            postpay.ui.refresh( '.<?php echo $gateway->id; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>-widget' );
    3130        }
    3231    );
  • postpay/trunk/templates/widgets/cart.php

    r2299357 r2329004  
    1212    data-amount="<?php echo WC_Postpay_Adapter::decimal( WC()->cart->total )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1313    data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
     14    data-locale="<?php echo get_locale(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1415></div>
  • postpay/trunk/templates/widgets/product.php

    r2314090 r2329004  
    1616    data-amount="<?php echo WC_Postpay_Adapter::decimal( $price )->jsonSerialize(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1717    data-currency="<?php echo get_woocommerce_currency(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
     18    data-locale="<?php echo get_locale(); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>"
    1819></div>
Note: See TracChangeset for help on using the changeset viewer.