Plugin Directory

Changeset 3424810


Ignore:
Timestamp:
12/21/2025 04:40:51 PM (3 months ago)
Author:
wpxteam
Message:

v1.9.1: * Updated: Reordered attributes in <button> tags so the class attribute appears before any data-* attributes. * Updated: Replaced <div> elements with <span> elements inside <button> tags.

Location:
product-variant-table-for-woocommerce
Files:
51 added
4 edited

Legend:

Unmodified
Added
Removed
  • product-variant-table-for-woocommerce/trunk/inc/compatibility.php

    r3419419 r3424810  
    433433        if( $args['stock_status'] === 'instock' || $args['stock_status'] === 'onbackorder' ){
    434434            echo wp_kses_post(
    435                 sprintf('<button data-product-id="%s" data-url="%s" data-product="%s" data-variant="%s" data-product-name="%s" class="%s">
    436                     <span class="pvtfw-btn-text">%s</span>
    437                     <div class="spinner-wrap"><span class="pvt-icon-spinner"></span></div>
    438                     </button>%s',
    439                     $args['product_id'],
    440                     $args['cart_url'],
    441                     $args['product_url'],
    442                     $args['variant_id'],
    443                     $args['product_name'],
     435                sprintf('<button class="%1$s" data-product-id="%2$s" data-url="%3$s" data-product="%4$s" data-variant="%5$s" data-product-name="%6$s">
     436                    <span class="pvtfw-btn-text">%7$s</span>
     437                    <span class="spinner-wrap"><span class="pvt-icon-spinner"></span></span>
     438                    </button>%8$s',
    444439                    /**
    445440                     *
     
    449444                     * @since version 1.4.16
    450445                     *
     446                     * @version 1.9.1
     447                     * Reordered attributes in `<button>` tags so the class attribute appears before any `data-*` attributes.
     448                     *
    451449                     **/
     450                    // %1$s - Button Class
    452451                    apply_filters( 'pvtfw_add_to_cart_btn_classes',
    453452                        wp_is_block_theme() ? 'wp-block-button__link wp-element-button wc-block-components-product-button__button pvtfw_variant_table_cart_btn' : 'pvtfw_variant_table_cart_btn button alt'
    454453                    ),
     454                    // %2$s - Product ID
     455                    $args['product_id'],
     456                    // %3$s - Button Cart URL
     457                    $args['cart_url'],
     458                    // %4$s - Product URL
     459                    $args['product_url'],
     460                    // %5$s - Variaiton ID
     461                    $args['variant_id'],
     462                    // %6$s - Product Name
     463                    $args['product_name'],
     464                    // %7$s - Button Text
    455465                    apply_filters( 'pvtfw_cart_btn_text',
    456466                       
    457                         /*
     467                        /**
    458468                         * @note: If it is coming from plugin settings it will not translate. Because, dynamic text
    459469                         * is not translatable.
     
    461471                         * @recommendation: Contact through our support forum
    462472                         *
    463                          * @link: https://localise.biz/wordpress/plugin/intro#content
     473                         * @see https://localise.biz/wordpress/plugin/intro#content
    464474                         */
    465475                        $args['text']
    466476
    467477                    ),
     478                    // %8$s - Back Order Text after the Add to cart button
    468479                    $args['stock_status'] === 'onbackorder' ?
    469480                    apply_filters('pvtfw_cart_btn_after_backorder_text',
     
    477488                sprintf('<button class="%s" disabled>
    478489                        <span class="pvtfw-btn-text">%s</span>
    479                         <div class="spinner-wrap"><span class="pvt-icon-spinner"></span></div>
     490                        <span class="spinner-wrap"><span class="pvt-icon-spinner"></span></span>
    480491                        </button>',
    481492                        /**
  • product-variant-table-for-woocommerce/trunk/languages/product-variant-table-for-woocommerce.pot

    r3419419 r3424810  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: PVT - Product Variation Table for WooCommerce 1.9.0\n"
     5"Project-Id-Version: PVT - Product Variation Table for WooCommerce 1.9.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/product-variant-table-for-woocommerce\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: 2025-12-14T06:38:08+00:00\n"
     12"POT-Creation-Date: 2025-12-21T06:44:39+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
  • product-variant-table-for-woocommerce/trunk/product-variant-table-for-woocommerce.php

    r3419419 r3424810  
    88Text Domain: product-variant-table-for-woocommerce
    99Domain Path: /languages
    10 Version: 1.9.0
     10Version: 1.9.1
    1111Requires at least: 4.7.0
    1212Requires PHP: 5.6.20
     
    3333 */
    3434
    35 define("PVTFW_VARIANT_TABLE_VERSION", '1.9.0');
     35define("PVTFW_VARIANT_TABLE_VERSION", '1.9.1');
    3636define("PVTFW_REQUIRED_PRO_VERSION", '1.9.0');
    3737define("PVTFW_DIR", plugin_dir_path(__FILE__) );
  • product-variant-table-for-woocommerce/trunk/readme.txt

    r3419419 r3424810  
    66Tested up to: 6.9
    77Requires PHP: 5.6.20
    8 Stable tag: 1.9.0
     8Stable tag: 1.9.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    182182== Changelog ==
    183183
     184= 1.9.1 [21-12-2025] Sunday =
     185* Updated: Reordered attributes in `<button>` tags so the class attribute appears before any `data-*` attributes.
     186* Updated: Replaced `<div>` elements with `<span>` elements inside `<button>` tags.
     187
    184188= 1.9.0 [14-12-2025] Sunday =
    185189* Added: WPML & Polylang Support.
Note: See TracChangeset for help on using the changeset viewer.