Plugin Directory

Changeset 3689199


Ignore:
Timestamp:
09/10/2026 01:59:57 AM (6 weeks ago)
Author:
mohsinoffline
Message:

Version 6.1.28

Location:
woo-authorize-net-gateway-aim
Files:
251 added
6 edited

Legend:

Unmodified
Added
Removed
  • woo-authorize-net-gateway-aim/trunk/block.json

    r3644121 r3689199  
    33        "apiVersion": 3,
    44        "name": "extension/woo-authorize-net-gateway-aim",
    5         "version": "6.1.27",
     5        "version": "6.1.28",
    66        "title": "Secure Authorize.net Gateway for WooCommerce",
    77        "category": "widgets",
  • woo-authorize-net-gateway-aim/trunk/gateway.php

    r3644121 r3689199  
    44Plugin URI: https://pledgedplugins.com/products/authorize-net-payment-gateway-woocommerce/
    55Description: A payment gateway for Authorize.net. An Authorize.net account and a server with cURL, SSL support, and a valid SSL certificate is required (for security reasons) for this gateway to function. Requires WC 3.3+
    6 Version: 6.1.27
     6Version: 6.1.28
    77Author: Pledged Plugins
    88Author URI: https://pledgedplugins.com
    … …  
    1010Domain Path: /languages
    1111WC requires at least: 3.3
    12 WC tested up to: 11.0
     12WC tested up to: 11.1
    1313License: GPLv3
    1414License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    6565        }
    6666
    67         define( 'WC_AUTHNET_VERSION', '6.1.27' );
     67        define( 'WC_AUTHNET_VERSION', '6.1.28' );
    6868        define( 'WC_AUTHNET_MIN_PHP_VER', '5.6.0' );
    6969        define( 'WC_AUTHNET_MIN_WC_VER', '3.3' );
  • woo-authorize-net-gateway-aim/trunk/includes/class-wc-authnet-blocks-support.php

    r3398492 r3689199  
    3232        public function initialize() {
    3333                $this->settings = get_option( 'woocommerce_authnet_settings', [] );
     34
     35                // Hooks to manually enqueue the block CSS, as WooCommerce doesn't have an API for styles.
     36                add_filter( 'render_block_woocommerce/checkout', [ $this, 'maybe_enqueue_blocks_style' ] );
     37                add_filter( 'render_block_woocommerce/cart', [ $this, 'maybe_enqueue_blocks_style' ] );
    3438        }
    3539
    … …  
    7074                }
    7175
    72                 wp_enqueue_style(
    73                         'wc-authnet-blocks-checkout-style',
    74                         WC_AUTHNET_PLUGIN_URL . '/build/style-index.css',
    75                         [],
    76                         $version
    77                 );
    78 
    7976                wp_register_script(
    8077                        'wc-authnet-blocks-integration',
    … …  
    9087
    9188                return [ 'wc-authnet-blocks-integration' ];
     89        }
     90
     91        /**
     92         * Enqueue the block stylesheet when the Cart or Checkout block renders AND
     93         * our blocks script has also been enqueued.
     94         *
     95         * Implemented to run as a filter callback for `render_block_woocommerce/cart`
     96         * and `render_block_woocommerce/checkout`, so the content MUST be returned as-is.
     97         *
     98         * @param string $content The rendered block content.
     99         *
     100         * @return string The unmodified block content.
     101         */
     102        public function maybe_enqueue_blocks_style( $content ) {
     103                $this->enqueue_blocks_style_if_script_enqueued();
     104
     105                return $content;
     106        }
     107
     108        /**
     109         * Enqueues the blocks stylesheet if the block script has been enqueued.
     110         *
     111         * @return void
     112         */
     113        private function enqueue_blocks_style_if_script_enqueued(): void {
     114                // Check if our script handle has been enqueued. Note that wp_script_is()
     115                // also checks dependencies and catches cases where the script will be
     116                // enqueued as a dependency of another script.
     117                if ( ! wp_script_is( 'wc-authnet-blocks-integration', 'enqueued' ) ) {
     118                        return;
     119                }
     120
     121                wp_enqueue_style(
     122                        'wc-authnet-blocks-checkout-style',
     123                        WC_AUTHNET_PLUGIN_URL . '/build/style-index.css',
     124                        [],
     125                        WC_AUTHNET_VERSION
     126                );
    92127        }
    93128
  • woo-authorize-net-gateway-aim/trunk/languages/wc-authnet.pot

    r3644121 r3689199  
    44"Project-Id-Version: Secure Gateway for Authorize.net and WooCommerce by "
    55"Pledged Plugins\n"
    6 "POT-Creation-Date: 2026-08-04 20:27+0530\n"
    7 "PO-Revision-Date: 2026-08-04 20:27+0530\n"
     6"POT-Creation-Date: 2026-09-08 19:33+0530\n"
     7"PO-Revision-Date: 2026-09-08 19:33+0530\n"
    88"Last-Translator: \n"
    99"Language-Team: \n"
    … …  
    489489
    490490#: includes/aim/class-wc-gateway-authnet.php:242
    491 #: includes/class-wc-authnet-blocks-support.php:174
     491#: includes/class-wc-authnet-blocks-support.php:209
    492492#: includes/class-wc-gateway-authnet.php:267
    493493msgid "Visa"
    … …  
    505505
    506506#: includes/aim/class-wc-gateway-authnet.php:245
    507 #: includes/class-wc-authnet-blocks-support.php:186
     507#: includes/class-wc-authnet-blocks-support.php:221
    508508#: includes/class-wc-gateway-authnet.php:270
    509509msgid "American Express"
    … …  
    511511
    512512#: includes/aim/class-wc-gateway-authnet.php:246
    513 #: includes/class-wc-authnet-blocks-support.php:200
     513#: includes/class-wc-authnet-blocks-support.php:235
    514514#: includes/class-wc-gateway-authnet.php:271
    515515msgid "JCB"
    … …  
    810810msgstr ""
    811811
    812 #: includes/class-wc-authnet-blocks-support.php:161 src/index.js:30
     812#: includes/class-wc-authnet-blocks-support.php:196 src/index.js:30
    813813msgid "Credit / Debit Card"
    814814msgstr ""
    815815
    816 #: includes/class-wc-authnet-blocks-support.php:180
     816#: includes/class-wc-authnet-blocks-support.php:215
    817817msgid "Mastercard"
    818818msgstr ""
    819819
    820 #: includes/class-wc-authnet-blocks-support.php:194
     820#: includes/class-wc-authnet-blocks-support.php:229
    821821msgctxt "Name of credit card"
    822822msgid "Discover"
    823823msgstr ""
    824824
    825 #: includes/class-wc-authnet-blocks-support.php:206
     825#: includes/class-wc-authnet-blocks-support.php:241
    826826msgid "Diners"
    827827msgstr ""
  • woo-authorize-net-gateway-aim/trunk/package.json

    r3644121 r3689199  
    11{
    22        "name": "woo-authorize-net-gateway-aim",
    3         "version": "6.1.27",
     3        "version": "6.1.28",
    44        "author": "Pledged Plugins",
    55        "license": "GPL-3.0+",
  • woo-authorize-net-gateway-aim/trunk/readme.txt

    r3644121 r3689199  
    66Author URI: https://pledgedplugins.com
    77Requires at least: 4.4
    8 Tested up to: 7.0
     8Tested up to: 7.1
    99Requires PHP: 5.6
    10 Stable tag: 6.1.27
     10Stable tag: 6.1.28
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    7979
    8080== Changelog ==
     81
     82= 6.1.28 =
     83* Fixed blocks CSS loading on every page
     84* Updated "WC tested up to" header to 11.1
     85* Updated compatibility info to WordPress 7.1
    8186
    8287= 6.1.27 =
Note: See TracChangeset for help on using the changeset viewer.