Plugin Directory

Changeset 3768706


Ignore:
Timestamp:
10/27/2026 01:46:20 PM (27 hours ago)
Author:
EmranAhmed
Message:

Update to version 2.6.1

Location:
woo-variation-swatches
Files:
65 added
12 edited

Legend:

Unmodified
Added
Removed
  • woo-variation-swatches/trunk/README.txt

    r3757070 r3768706  
    77WC requires at least: 8.0
    88WC tested up to: 11.2
    9 Stable tag: 2.6.0
     9Stable tag: 2.6.1
    1010License: GPL-2.0-or-later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    350350== Changelog ==
    351351
     352= 2.6.1 - 20-10-2026 =
     353* Fixed: Empty Variation Product Issue fixed.
     354* Tweak: Auto Deactivate In compatible pro version.
     355
    352356= 2.6.0 - 20-10-2026 =
    353357* Added: Minimum WordPress version raised to 6.8
  • woo-variation-swatches/trunk/assets/css/admin.css

    r3757070 r3768706  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 10/20/2026, 10:08:09 PM
     5 * Date: 10/27/2026, 7:35:16 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-swatches/trunk/assets/css/frontend.css

    r3757070 r3768706  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 10/20/2026, 10:08:09 PM
     5 * Date: 10/27/2026, 7:35:16 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-swatches/trunk/assets/js/admin.js

    r3757070 r3768706  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 10/20/2026, 10:08:09 PM
     5 * Date: 10/27/2026, 7:35:16 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-swatches/trunk/assets/js/frontend.js

    r3757070 r3768706  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 10/20/2026, 10:08:09 PM
     5 * Date: 10/27/2026, 7:35:16 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-swatches/trunk/assets/js/wp-color-picker-alpha.js

    r3757070 r3768706  
    33 *
    44 * Author: Emran Ahmed ( emran.bd.08@gmail.com )
    5  * Date: 10/20/2026, 10:08:09 PM
     5 * Date: 10/27/2026, 7:35:16 PM
    66 * Released under the GPLv3 license.
    77 */
  • woo-variation-swatches/trunk/changelog.txt

    r3757070 r3768706  
    11*** Variation Swatches for WooCommerce ***
    22
    3 = 2.6.0 - 20-10-2026 =
     327-10-2026 - version 2.6.1
     4
     5* Fixed: Empty Variation Product Issue fixed.
     6* Tweak: Auto Deactivate In compatible pro version.
     7
     820-10-2026 - version 2.6.0
    49
    510* Added: Minimum WordPress version raised to 6.8
    … …  
    1520* Tweak: Use the core `wp-color-picker` in admin instead of `wp-color-picker-alpha`
    1621
    17 = 2.5.0 - 17-09-2026 =
     2217-09-2026 - version 2.5.0
    1823
    1924* Added: WC 11.1+ compatibility.
    … …  
    2126* Added: Attribute label change shape style.
    2227
    23 = 2.4.0 - 19-08-2026 =
     2819-08-2026 - version 2.4.0
    2429
    2530* Added - WP 7.1+ compatibility.
  • woo-variation-swatches/trunk/includes/class-woo-variation-swatches-attribute-fields.php

    r3757070 r3768706  
    5757                public function save_attribute_fields($attribute_id): void {
    5858
    59                         if (  isset( $_POST[$this->option] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing -- nonce is already verified by woocommerce
     59                        if ( isset( $_POST[$this->option] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce is already verified by woocommerce
    6060
    6161                                $data = map_deep( $_POST[$this->option], 'sanitize_text_field' ); //phpcs:ignore WordPress.Security.NonceVerification.Missing -- nonce is already verified by woocommerce
  • woo-variation-swatches/trunk/includes/class-woo-variation-swatches-backend.php

    r3757070 r3768706  
    233233                                                         * @since 3.4.0
    234234                                                         */
    235                                                         echo '<option ' . wc_implode_html_attributes( $option_attributes ) . '>' . esc_html( apply_filters( 'woocommerce_product_attribute_term_name', $selected_term->name, $selected_term ) ) . '</option>';
     235                                                        echo '<option ' . wc_implode_html_attributes( $option_attributes ) . '>' . esc_html( apply_filters( 'woocommerce_product_attribute_term_name', $selected_term->name, $selected_term ) ) . '</option>'; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in wc_implode_html_attributes function.
    236236                                                }
    237237                                        }
  • woo-variation-swatches/trunk/includes/class-woo-variation-swatches-product-page.php

    r3757070 r3768706  
    162162                }
    163163
    164                 public function get_variation_threshold_max( $product ) {
     164                public function get_variation_threshold_max( $product ): int {
    165165                        return absint( apply_filters( 'woo_variation_swatches_global_ajax_variation_threshold_max', 100, $product ) );
    166166                }
    … …  
    264264                }
    265265
    266                 public function inline_svg( $content ) {
     266                public function inline_svg( $content ): string {
    267267                        return sprintf( 'url("data:image/svg+xml;utf8,%s")', $this->inline_svg_encode( $content ) );
    268268                }
    269269
    270                 public function implode_css_property_value( $raw_properties ) {
     270                public function implode_css_property_value( $raw_properties ): string {
    271271                        $properties = array();
    272272                        foreach ( $raw_properties as $name => $value ) {
    … …  
    347347                }
    348348
    349                 public function is_archive( $data ) {
     349                public function is_archive( $data ): bool {
    350350                        return isset( $data[ 'is_archive' ] ) && wc_string_to_bool( $data[ 'is_archive' ] );
    351351                }
    … …  
    384384                }
    385385
    386                 public function wrapper_start( $args, $attribute, $product, $attribute_type, $options ) {
     386                public function wrapper_start( $args, $attribute, $product, $attribute_type, $options ): string {
    387387
    388388                        $html_attributes = $this->wrapper_html_attribute( $args, $attribute, $product, $attribute_type, $options );
    … …  
    391391                }
    392392
    393                 public function wrapper_end() {
     393                public function wrapper_end(): string {
    394394                        return '</ul>';
    395395                }
    … …  
    456456                }
    457457
    458                 public function item_end() {
     458                public function item_end(): string {
    459459
    460460                        $html            = '';
    … …  
    553553                }
    554554
    555                 public function get_variation_data_by_attribute_name( $available_variations, $attribute_name ) {
     555                public function get_variation_data_by_attribute_name( $available_variations, $attribute_name ): array {
    556556
    557557                        $assigned       = array();
    … …  
    768768                }
    769769
    770                 public function get_variation_img_src( $image_id, $image_size ) {
     770                public function get_variation_img_src( $image_id, $image_size ): array {
    771771                        $image = array(
    772772                                'src'     => woo_variation_swatches()->images_url( '/placeholder.png' ),
    … …  
    908908                        $product               = $args[ 'product' ];
    909909                        $attribute             = $args[ 'attribute' ];
    910                         $name                  = $args[ 'name' ] ?: wc_variation_attribute_name( $attribute );
    911                         $id                    = $args[ 'id' ] ?: sanitize_title( $attribute );
     910                        $name                  = $args[ 'name' ] ?? wc_variation_attribute_name( $attribute );
     911                        $id                    = $args[ 'id' ] ?? sanitize_title( $attribute );
    912912                        $class                 = $args[ 'class' ];
    913913                        $show_option_none      = (bool) $args[ 'show_option_none' ];
    914                         $show_option_none_text = $args[ 'show_option_none' ] ?: esc_html__( 'Choose an option', 'woo-variation-swatches' ); // We'll do our best to hide the placeholder, but we'll need to show something when resetting options.
     914                        $show_option_none_text = $args[ 'show_option_none' ] ?? esc_html__( 'Choose an option', 'woo-variation-swatches' ); // We'll do our best to hide the placeholder, but we'll need to show something when resetting options.
    915915
    916916                        if ( empty( $options ) && ! empty( $product ) && ! empty( $attribute ) ) {
  • woo-variation-swatches/trunk/languages/woo-variation-swatches.pot

    r3757070 r3768706  
    88"Content-Transfer-Encoding: 8bit\n"
    99"Language-Team: Emran Ahmed <emran.bd.08@gmail.com>\n"
    10 "POT-Creation-Date: 2026-10-20 16:08+0000\n"
     10"POT-Creation-Date: 2026-10-27 13:35+0000\n"
    1111"X-Poedit-Basepath: ..\n"
    1212"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
    … …  
    10661066
    10671067#. translators: %s: Pro Plugin Version
    1068 #: ../woo-variation-swatches.php:140
     1068#: ../woo-variation-swatches.php:144
    10691069msgid "You are running older version of \"Variation Swatches for WooCommerce - Pro\". Please upgrade to %s or upper and continue."
    10701070msgstr ""
    10711071
    10721072#. translators: %s: Pro Plugin Version
    1073 #: ../woo-variation-swatches.php:158
     1073#: ../woo-variation-swatches.php:162
    10741074msgid "You are running older version of \"Variation Swatches for WooCommerce - Pro\". Please upgrade to %s or upper."
    10751075msgstr ""
  • woo-variation-swatches/trunk/woo-variation-swatches.php

    r3757070 r3768706  
    55         * Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 8.0+
    66         * Author: Emran Ahmed
    7          * Version: 2.6.0
     7         * Version: 2.6.1
    88         * Requires PHP: 7.4
    99         * Requires at least: 6.8
    … …  
    2222
    2323if ( ! defined( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION' ) ) {
    24         define( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION', '2.6.0' );
     24        define( 'WOO_VARIATION_SWATCHES_PLUGIN_VERSION', '2.6.1' );
    2525}
    2626
    … …  
    8181        }
    8282
     83        if ( function_exists( 'woo_variation_swatches_pro_only_updater' ) && ! woo_variation_swatches_using_correct_pro_version() ) {
     84                woo_variation_swatches_pro_only_updater();
     85        }
     86
    8387        if ( function_exists( 'woo_variation_swatches_pro' ) && woo_variation_swatches_using_correct_pro_version() ) {
    8488                return woo_variation_swatches_pro();
    … …  
    122126                add_action('admin_notices', 'woo_variation_swatches_deactivate_notice_pro');
    123127                // Deactivate the plugin silently, Prevent deactivation hooks from running.
    124                 deactivate_plugins( 'woo-variation-swatches-pro/woo-variation-swatches-pro.php', true );
     128                // deactivate_plugins( 'woo-variation-swatches-pro/woo-variation-swatches-pro.php', true );
    125129        }
    126130}
Note: See TracChangeset for help on using the changeset viewer.