Plugin Directory

Changeset 2805917


Ignore:
Timestamp:
10/27/2022 02:37:24 PM (3 years ago)
Author:
themealien
Message:

Update to version 2.1.7 from GitHub

Location:
variation-swatches-for-woocommerce
Files:
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • variation-swatches-for-woocommerce/tags/2.1.7/assets/css/frontend.css

    r2747209 r2805917  
    102102  font-size: 14px;
    103103  min-width: max-content;
     104  width: auto;
    104105}
    105106.woocommerce div.product form.cart.variations_form .tawcvs-swatches .swatch.swatch-image,
  • variation-swatches-for-woocommerce/tags/2.1.7/assets/css/frontend.css.map

    r2747209 r2805917  
    1 {"version":3,"sourceRoot":"","sources":["frontend.scss"],"names":[],"mappings":"AAAA;EACE;EACA;;;AAQI;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIE;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKN;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EAC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;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAGF;AAAA;AAAA;AAIE;EACE;;AAGF;EACE;IACE;;;AAIJ;EACE;;AAKA;EAME;;AALA;EACE;EACA;;;AAQR;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAEF;EACE;EACA","file":"frontend.css"}
     1{"version":3,"sourceRoot":"","sources":["frontend.scss"],"names":[],"mappings":"AAAA;EACE;EACA;;;AAQI;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIE;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKN;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;A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J;EACE;;;AAEF;EACE;EACA","file":"frontend.css"}
  • variation-swatches-for-woocommerce/tags/2.1.7/assets/css/frontend.scss

    r2747209 r2805917  
    7878          font-size: 14px;
    7979          min-width: max-content;
     80          width: auto;
    8081        }
    8182
  • variation-swatches-for-woocommerce/tags/2.1.7/includes/class-admin.php

    r2747209 r2805917  
    211211     */
    212212    public function save_custom_product_data( $post_id ) {
    213         update_post_meta( $post_id, 'variation_swatches_disabled', esc_attr( $_POST['variation_swatches_disabled'] ) );
     213        if ( isset( $_POST['variation_swatches_disabled'] ) ) {
     214            update_post_meta( $post_id, 'variation_swatches_disabled', esc_attr( $_POST['variation_swatches_disabled'] ) );
     215        }
    214216    }
    215217
  • variation-swatches-for-woocommerce/tags/2.1.7/includes/class-frontend.php

    r2747209 r2805917  
    6363                $this,
    6464                'display_variations_on_shop_page_before_add_to_cart_btn'
    65             ), 10, 3 );
     65            ), 10, 2 );
    6666        }
    6767        add_action( 'wp_head', array( $this, 'apply_custom_design_styles' ) );
     
    273273        $name = esc_html( apply_filters( 'woocommerce_variation_option_name', $term->name ) );
    274274
    275         $tooltip = $this->get_tooltip_html( '', $term, $name, $args );
    276         $tooltip = apply_filters( 'tawcvs_tooltip_html', $tooltip, $term, $name, $args );
     275        $tooltip_text = esc_html( apply_filters( 'woocommerce_variation_option_description_text', ! empty( $term->description ) ? $term->description : $term->name ) );
     276        $tooltip = $this->get_tooltip_html( '', $term, $tooltip_text, $args );
     277        $tooltip = apply_filters( 'tawcvs_tooltip_html', $tooltip, $term, $tooltip_text, $args );
    277278
    278279        $swatchShape = isset( $this->generalSettings['swatch-shape'] ) ? $this->generalSettings['swatch-shape'] : 'circle';
     
    376377     * @param $html
    377378     * @param $product
    378      * @param $args
    379379     *
    380380     * @return mixed|void
    381381     */
    382     public function display_variations_on_shop_page_before_add_to_cart_btn( $html, $product, $args ) {
     382    public function display_variations_on_shop_page_before_add_to_cart_btn( $html, $product ) {
    383383        global $product;
    384384
  • variation-swatches-for-woocommerce/tags/2.1.7/includes/class-setting-fields-manager.php

    r2747209 r2805917  
    396396                        'priority'       => 8
    397397                    ),
     398                    array(
     399                        'title'    => __( 'Enable Attribute Name', 'woosuite-variation-swatches-pro' ),
     400                        'fields'   => array(
     401                            array(
     402                                'id'   => 'wcvs-enable-attribute-name',
     403                                'type' => 'checkbox',
     404                                'name' => 'enable-attribute-name',
     405                            )
     406                        ),
     407                        'is_pro_feature' => true,
     408                        'desc'     => __( 'It will show the attribute name when choosing a desired attribute value', 'woosuite-variation-swatches-pro' ),
     409                        'priority' => 9
     410                    ),
     411                    array(
     412                        'title'    => __( 'Enable Attribute Description', 'woosuite-variation-swatches-pro' ),
     413                        'fields'   => array(
     414                            array(
     415                                'id'   => 'wcvs-enable-attribute-desc',
     416                                'type' => 'checkbox',
     417                                'name' => 'enable-attribute-desc',
     418                            )
     419                        ),
     420                        'is_pro_feature' => true,
     421                        'desc'     => __( 'It will show the attribute description under the attribute block', 'woosuite-variation-swatches-pro' ),
     422                        'priority' => 10
     423                    ),
     424                    array(
     425                        'title'          => __( 'Swatch limit on Singe product', 'wcvs' ),
     426                        'fields'         => array(
     427                            array(
     428                                'id'            => 'wcvs-swatch-limit-single-page',
     429                                'type'          => 'number',
     430                                'name'          => 'swatch-limit-single-page',
     431                                'default_value' => '0'
     432                            )
     433                        ),
     434                        'is_pro_feature' => true,
     435                        'desc'           => __( 'Set a max amount of swatches to show.<br>0 means show all swatches', 'wcvs' ),
     436                        'priority'       => 11
     437                    ),
    398438                ),
    399439                'design'  => array(
  • variation-swatches-for-woocommerce/tags/2.1.7/includes/class-setting-fields-renderer.php

    r2653659 r2805917  
    1313            add_action( 'woosuite_variation_swatches_settings_fields_html', array( $this, 'render_settings_page' ) );
    1414
    15             //Hook for the template parts
    16             add_action( 'woosuite_child_plugin_header', array( $this, 'render_settings_page_header' ) );
    17             add_action( 'woosuite_child_plugin_sidebar', array( $this, 'render_settings_page_sidebar' ) );
    18             add_action( 'woosuite_child_plugin_footer', array( $this, 'render_settings_page_footer' ) );
    19             add_action( 'woosuite_child_plugin_video_tutorials', array(
    20                 $this,
    21                 'render_settings_page_video_tutorials'
    22             ) );
     15            if ( TA_WC_Variation_Swatches::is_in_plugin_settings_page() ) {
     16                //Hook for the template parts
     17                add_action( 'woosuite_child_plugin_header', array( $this, 'render_settings_page_header' ) );
     18                add_action( 'woosuite_child_plugin_sidebar', array( $this, 'render_settings_page_sidebar' ) );
     19                add_action( 'woosuite_child_plugin_footer', array( $this, 'render_settings_page_footer' ) );
     20                add_action( 'woosuite_child_plugin_video_tutorials', array(
     21                    $this,
     22                    'render_settings_page_video_tutorials'
     23                ) );
     24            }
    2325
    2426
  • variation-swatches-for-woocommerce/tags/2.1.7/readme.txt

    r2747209 r2805917  
    33Tags: variation swatches, woocommerce swatches, variation swatches for woocommerce, woocommerce attributes, woocommerce
    44Requires at least: 4.5
    5 Tested up to: 6.0
    6 Stable tag: 2.1.6
     5Tested up to: 6.0.3
     6Stable tag: 2.1.7
    77WC requires at least: 3.2.0
    8 WC tested up to: 6.6.1
     8WC tested up to: 7.0.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    104104
    105105== Changelog ==
     106= 2.1.7 =
     107* Fix PHP warning
     108* Removed unused param from hook
     109* Fix the spacing issue in the Safari browser
     110* Added the option to limit the number of swatches on the single product in Pro
     111* Separate variables to get swatch name and desc
     112* Added support to change the variation image by hovering in Pro
     113
    106114= 2.1.6 =
    107115* Update: WooCommerce and WordPress Compatibility
  • variation-swatches-for-woocommerce/tags/2.1.7/templates/admin/welcome-popup.php

    r2747209 r2805917  
    77        <div class="popup-content">
    88            <div class="popup-inner-content">
    9                 <p><strong>Variation Swatches 2.1.6 is here! 🥳🥳</strong></p>
     9                <p><strong>Variation Swatches 2.1.7 is here! 🥳🥳</strong></p>
    1010                <p>This version fixes small styling issues but more importantly extends the support of <a href="https://woosuite.com/lp/variations-swatches-upgrade/?ref=update-message">our Pro version</a>.</p>
    1111                <p>A lot of our best features come from your feedback, so let us know what you would like to see next.</p>
  • variation-swatches-for-woocommerce/tags/2.1.7/variation-swatches-for-woocommerce.php

    r2747209 r2805917  
    44 * Plugin URI: https://woosuite.com/plugins/woocommerce-variation-swatches/
    55 * Description: Creates variation swatches for WooCommerce, converts your variation dropdown into color, label, or photo swatches with ease, The original Variation Swatches for WooCommerce.
    6  * Version: 2.1.6
     6 * Version: 2.1.7
    77 * Author: Woosuite
    88 * Author URI: https://woosuite.com/
    99 * Requires at least: 4.5
    10  * Tested up to: 6.0
     10 * Tested up to: 6.0.3
    1111 * Text Domain: wcvs
    1212 * Domain Path: /languages
    1313 * WC requires at least: 3.0.0
    14  * WC tested up to: 6.6.1
     14 * WC tested up to: 7.0.0
    1515 *
    1616 * License: GPLv2 or later
     
    2828
    2929if ( ! defined( 'WCVS_PLUGIN_VERSION' ) ) {
    30     define( 'WCVS_PLUGIN_VERSION', '2.1.6' );
     30    define( 'WCVS_PLUGIN_VERSION', '2.1.7' );
    3131}
    3232
  • variation-swatches-for-woocommerce/trunk/assets/css/frontend.css

    r2747209 r2805917  
    102102  font-size: 14px;
    103103  min-width: max-content;
     104  width: auto;
    104105}
    105106.woocommerce div.product form.cart.variations_form .tawcvs-swatches .swatch.swatch-image,
  • variation-swatches-for-woocommerce/trunk/assets/css/frontend.css.map

    r2747209 r2805917  
    1 {"version":3,"sourceRoot":"","sources":["frontend.scss"],"names":[],"mappings":"AAAA;EACE;EACA;;;AAQI;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA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AAA;AAAA;AAAA;AAAA;EACE;;AAKN;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;AAAA;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAIA;AAAA;AAAA;EACE;EACA;;AAEA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAeA;AAAA;AAAA;EACE;;AAKF;AAAA;AAAA;EACE;;AAON;AAAA;AAAA;EACE;;;AAOV;EACE;;AAEA;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAKF;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAGF;AAAA;AAAA;AAIE;EACE;;AAGF;EACE;IACE;;;AAIJ;EACE;;AAKA;EAME;;AALA;EACE;EACA;;;AAQR;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAEF;EACE;EACA","file":"frontend.css"}
     1{"version":3,"sourceRoot":"","sources":["frontend.scss"],"names":[],"mappings":"AAAA;EACE;EACA;;;AAQI;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIE;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;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ACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;AAAA;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAIA;AAAA;AAAA;EACE;EACA;;AAEA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAeA;AAAA;AAAA;EACE;;AAKF;AAAA;AAAA;EACE;;AAON;AAAA;AAAA;EACE;;;AAOV;EACE;;AAEA;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAKF;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAGF;AAAA;AAAA;AAIE;EACE;;AAGF;EACE;IACE;;;AAIJ;EACE;;AAKA;EAME;;AALA;EACE;EACA;;;AAQR;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAEF;EACE;EACA","file":"frontend.css"}
  • variation-swatches-for-woocommerce/trunk/assets/css/frontend.scss

    r2747209 r2805917  
    7878          font-size: 14px;
    7979          min-width: max-content;
     80          width: auto;
    8081        }
    8182
  • variation-swatches-for-woocommerce/trunk/includes/class-admin.php

    r2747209 r2805917  
    211211     */
    212212    public function save_custom_product_data( $post_id ) {
    213         update_post_meta( $post_id, 'variation_swatches_disabled', esc_attr( $_POST['variation_swatches_disabled'] ) );
     213        if ( isset( $_POST['variation_swatches_disabled'] ) ) {
     214            update_post_meta( $post_id, 'variation_swatches_disabled', esc_attr( $_POST['variation_swatches_disabled'] ) );
     215        }
    214216    }
    215217
  • variation-swatches-for-woocommerce/trunk/includes/class-frontend.php

    r2747209 r2805917  
    6363                $this,
    6464                'display_variations_on_shop_page_before_add_to_cart_btn'
    65             ), 10, 3 );
     65            ), 10, 2 );
    6666        }
    6767        add_action( 'wp_head', array( $this, 'apply_custom_design_styles' ) );
     
    273273        $name = esc_html( apply_filters( 'woocommerce_variation_option_name', $term->name ) );
    274274
    275         $tooltip = $this->get_tooltip_html( '', $term, $name, $args );
    276         $tooltip = apply_filters( 'tawcvs_tooltip_html', $tooltip, $term, $name, $args );
     275        $tooltip_text = esc_html( apply_filters( 'woocommerce_variation_option_description_text', ! empty( $term->description ) ? $term->description : $term->name ) );
     276        $tooltip = $this->get_tooltip_html( '', $term, $tooltip_text, $args );
     277        $tooltip = apply_filters( 'tawcvs_tooltip_html', $tooltip, $term, $tooltip_text, $args );
    277278
    278279        $swatchShape = isset( $this->generalSettings['swatch-shape'] ) ? $this->generalSettings['swatch-shape'] : 'circle';
     
    376377     * @param $html
    377378     * @param $product
    378      * @param $args
    379379     *
    380380     * @return mixed|void
    381381     */
    382     public function display_variations_on_shop_page_before_add_to_cart_btn( $html, $product, $args ) {
     382    public function display_variations_on_shop_page_before_add_to_cart_btn( $html, $product ) {
    383383        global $product;
    384384
  • variation-swatches-for-woocommerce/trunk/includes/class-setting-fields-manager.php

    r2747209 r2805917  
    396396                        'priority'       => 8
    397397                    ),
     398                    array(
     399                        'title'    => __( 'Enable Attribute Name', 'woosuite-variation-swatches-pro' ),
     400                        'fields'   => array(
     401                            array(
     402                                'id'   => 'wcvs-enable-attribute-name',
     403                                'type' => 'checkbox',
     404                                'name' => 'enable-attribute-name',
     405                            )
     406                        ),
     407                        'is_pro_feature' => true,
     408                        'desc'     => __( 'It will show the attribute name when choosing a desired attribute value', 'woosuite-variation-swatches-pro' ),
     409                        'priority' => 9
     410                    ),
     411                    array(
     412                        'title'    => __( 'Enable Attribute Description', 'woosuite-variation-swatches-pro' ),
     413                        'fields'   => array(
     414                            array(
     415                                'id'   => 'wcvs-enable-attribute-desc',
     416                                'type' => 'checkbox',
     417                                'name' => 'enable-attribute-desc',
     418                            )
     419                        ),
     420                        'is_pro_feature' => true,
     421                        'desc'     => __( 'It will show the attribute description under the attribute block', 'woosuite-variation-swatches-pro' ),
     422                        'priority' => 10
     423                    ),
     424                    array(
     425                        'title'          => __( 'Swatch limit on Singe product', 'wcvs' ),
     426                        'fields'         => array(
     427                            array(
     428                                'id'            => 'wcvs-swatch-limit-single-page',
     429                                'type'          => 'number',
     430                                'name'          => 'swatch-limit-single-page',
     431                                'default_value' => '0'
     432                            )
     433                        ),
     434                        'is_pro_feature' => true,
     435                        'desc'           => __( 'Set a max amount of swatches to show.<br>0 means show all swatches', 'wcvs' ),
     436                        'priority'       => 11
     437                    ),
    398438                ),
    399439                'design'  => array(
  • variation-swatches-for-woocommerce/trunk/includes/class-setting-fields-renderer.php

    r2653659 r2805917  
    1313            add_action( 'woosuite_variation_swatches_settings_fields_html', array( $this, 'render_settings_page' ) );
    1414
    15             //Hook for the template parts
    16             add_action( 'woosuite_child_plugin_header', array( $this, 'render_settings_page_header' ) );
    17             add_action( 'woosuite_child_plugin_sidebar', array( $this, 'render_settings_page_sidebar' ) );
    18             add_action( 'woosuite_child_plugin_footer', array( $this, 'render_settings_page_footer' ) );
    19             add_action( 'woosuite_child_plugin_video_tutorials', array(
    20                 $this,
    21                 'render_settings_page_video_tutorials'
    22             ) );
     15            if ( TA_WC_Variation_Swatches::is_in_plugin_settings_page() ) {
     16                //Hook for the template parts
     17                add_action( 'woosuite_child_plugin_header', array( $this, 'render_settings_page_header' ) );
     18                add_action( 'woosuite_child_plugin_sidebar', array( $this, 'render_settings_page_sidebar' ) );
     19                add_action( 'woosuite_child_plugin_footer', array( $this, 'render_settings_page_footer' ) );
     20                add_action( 'woosuite_child_plugin_video_tutorials', array(
     21                    $this,
     22                    'render_settings_page_video_tutorials'
     23                ) );
     24            }
    2325
    2426
  • variation-swatches-for-woocommerce/trunk/readme.txt

    r2747209 r2805917  
    33Tags: variation swatches, woocommerce swatches, variation swatches for woocommerce, woocommerce attributes, woocommerce
    44Requires at least: 4.5
    5 Tested up to: 6.0
    6 Stable tag: 2.1.6
     5Tested up to: 6.0.3
     6Stable tag: 2.1.7
    77WC requires at least: 3.2.0
    8 WC tested up to: 6.6.1
     8WC tested up to: 7.0.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    104104
    105105== Changelog ==
     106= 2.1.7 =
     107* Fix PHP warning
     108* Removed unused param from hook
     109* Fix the spacing issue in the Safari browser
     110* Added the option to limit the number of swatches on the single product in Pro
     111* Separate variables to get swatch name and desc
     112* Added support to change the variation image by hovering in Pro
     113
    106114= 2.1.6 =
    107115* Update: WooCommerce and WordPress Compatibility
  • variation-swatches-for-woocommerce/trunk/templates/admin/welcome-popup.php

    r2747209 r2805917  
    77        <div class="popup-content">
    88            <div class="popup-inner-content">
    9                 <p><strong>Variation Swatches 2.1.6 is here! 🥳🥳</strong></p>
     9                <p><strong>Variation Swatches 2.1.7 is here! 🥳🥳</strong></p>
    1010                <p>This version fixes small styling issues but more importantly extends the support of <a href="https://woosuite.com/lp/variations-swatches-upgrade/?ref=update-message">our Pro version</a>.</p>
    1111                <p>A lot of our best features come from your feedback, so let us know what you would like to see next.</p>
  • variation-swatches-for-woocommerce/trunk/variation-swatches-for-woocommerce.php

    r2747209 r2805917  
    44 * Plugin URI: https://woosuite.com/plugins/woocommerce-variation-swatches/
    55 * Description: Creates variation swatches for WooCommerce, converts your variation dropdown into color, label, or photo swatches with ease, The original Variation Swatches for WooCommerce.
    6  * Version: 2.1.6
     6 * Version: 2.1.7
    77 * Author: Woosuite
    88 * Author URI: https://woosuite.com/
    99 * Requires at least: 4.5
    10  * Tested up to: 6.0
     10 * Tested up to: 6.0.3
    1111 * Text Domain: wcvs
    1212 * Domain Path: /languages
    1313 * WC requires at least: 3.0.0
    14  * WC tested up to: 6.6.1
     14 * WC tested up to: 7.0.0
    1515 *
    1616 * License: GPLv2 or later
     
    2828
    2929if ( ! defined( 'WCVS_PLUGIN_VERSION' ) ) {
    30     define( 'WCVS_PLUGIN_VERSION', '2.1.6' );
     30    define( 'WCVS_PLUGIN_VERSION', '2.1.7' );
    3131}
    3232
Note: See TracChangeset for help on using the changeset viewer.