Changeset 3768706
- Timestamp:
- 10/27/2026 01:46:20 PM (27 hours ago)
- Location:
- woo-variation-swatches
- Files:
-
- 65 added
- 12 edited
-
tags/2.6.1 (added)
-
tags/2.6.1/README.txt (added)
-
tags/2.6.1/assets (added)
-
tags/2.6.1/assets/css (added)
-
tags/2.6.1/assets/css/admin.css (added)
-
tags/2.6.1/assets/css/admin.min.css (added)
-
tags/2.6.1/assets/css/frontend.css (added)
-
tags/2.6.1/assets/css/frontend.min.css (added)
-
tags/2.6.1/assets/js (added)
-
tags/2.6.1/assets/js/admin.js (added)
-
tags/2.6.1/assets/js/admin.min.js (added)
-
tags/2.6.1/assets/js/admin.min.js.LICENSE.txt (added)
-
tags/2.6.1/assets/js/frontend.js (added)
-
tags/2.6.1/assets/js/frontend.min.js (added)
-
tags/2.6.1/assets/js/jquery.serializejson.js (added)
-
tags/2.6.1/assets/js/jquery.serializejson.min.js (added)
-
tags/2.6.1/assets/js/wp-color-picker-alpha.js (added)
-
tags/2.6.1/assets/js/wp-color-picker-alpha.min.js (added)
-
tags/2.6.1/changelog.txt (added)
-
tags/2.6.1/images (added)
-
tags/2.6.1/images/placeholder.png (added)
-
tags/2.6.1/includes (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-attribute-fields.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-backend.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-blocks.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-color-api.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-compatibility.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-deactivate-feedback.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-export-import.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-frontend.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-manage-cache.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-product-edit-panel.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-product-page.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-settings.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-term-meta.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-wc-api-response.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches-wc-visual.php (added)
-
tags/2.6.1/includes/class-woo-variation-swatches.php (added)
-
tags/2.6.1/includes/functions.php (added)
-
tags/2.6.1/includes/getwooplugins (added)
-
tags/2.6.1/includes/getwooplugins/class-getwooplugins-admin-menus.php (added)
-
tags/2.6.1/includes/getwooplugins/class-getwooplugins-admin-settings.php (added)
-
tags/2.6.1/includes/getwooplugins/class-getwooplugins-plugin-deactivate-feedback.php (added)
-
tags/2.6.1/includes/getwooplugins/class-getwooplugins-settings-page.php (added)
-
tags/2.6.1/includes/getwooplugins/css (added)
-
tags/2.6.1/includes/getwooplugins/css/getwooplugins-settings.css (added)
-
tags/2.6.1/includes/getwooplugins/html (added)
-
tags/2.6.1/includes/getwooplugins/html/deactive-feedback-dialog.php (added)
-
tags/2.6.1/includes/getwooplugins/html/dialog.php (added)
-
tags/2.6.1/includes/getwooplugins/html/settings-page.php (added)
-
tags/2.6.1/includes/getwooplugins/js (added)
-
tags/2.6.1/includes/getwooplugins/js/getwooplugins-form-field-dependency.js (added)
-
tags/2.6.1/includes/getwooplugins/js/getwooplugins-settings.js (added)
-
tags/2.6.1/includes/getwooplugins/js/jquery.tipTip.js (added)
-
tags/2.6.1/includes/getwooplugins/js/wp-color-picker-alpha.js (added)
-
tags/2.6.1/includes/html-product-settings-panel.php (added)
-
tags/2.6.1/includes/html-settings-group.php (added)
-
tags/2.6.1/includes/html-settings-sidebar.php (added)
-
tags/2.6.1/includes/html-settings-tutorial.php (added)
-
tags/2.6.1/includes/themes-support.php (added)
-
tags/2.6.1/languages (added)
-
tags/2.6.1/languages/woo-variation-swatches.pot (added)
-
tags/2.6.1/uninstall.php (added)
-
tags/2.6.1/woo-variation-swatches.php (added)
-
tags/2.6.1/wpml-config.xml (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/assets/css/frontend.css (modified) (1 diff)
-
trunk/assets/js/admin.js (modified) (1 diff)
-
trunk/assets/js/frontend.js (modified) (1 diff)
-
trunk/assets/js/wp-color-picker-alpha.js (modified) (1 diff)
-
trunk/changelog.txt (modified) (3 diffs)
-
trunk/includes/class-woo-variation-swatches-attribute-fields.php (modified) (1 diff)
-
trunk/includes/class-woo-variation-swatches-backend.php (modified) (1 diff)
-
trunk/includes/class-woo-variation-swatches-product-page.php (modified) (9 diffs)
-
trunk/languages/woo-variation-swatches.pot (modified) (2 diffs)
-
trunk/woo-variation-swatches.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-variation-swatches/trunk/README.txt
r3757070 r3768706 7 7 WC requires at least: 8.0 8 8 WC tested up to: 11.2 9 Stable tag: 2.6. 09 Stable tag: 2.6.1 10 10 License: GPL-2.0-or-later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 350 350 == Changelog == 351 351 352 = 2.6.1 - 20-10-2026 = 353 * Fixed: Empty Variation Product Issue fixed. 354 * Tweak: Auto Deactivate In compatible pro version. 355 352 356 = 2.6.0 - 20-10-2026 = 353 357 * Added: Minimum WordPress version raised to 6.8 -
woo-variation-swatches/trunk/assets/css/admin.css
r3757070 r3768706 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 10/2 0/2026, 10:08:09PM5 * Date: 10/27/2026, 7:35:16 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-swatches/trunk/assets/css/frontend.css
r3757070 r3768706 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 10/2 0/2026, 10:08:09PM5 * Date: 10/27/2026, 7:35:16 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-swatches/trunk/assets/js/admin.js
r3757070 r3768706 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 10/2 0/2026, 10:08:09PM5 * Date: 10/27/2026, 7:35:16 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-swatches/trunk/assets/js/frontend.js
r3757070 r3768706 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 10/2 0/2026, 10:08:09PM5 * Date: 10/27/2026, 7:35:16 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-swatches/trunk/assets/js/wp-color-picker-alpha.js
r3757070 r3768706 3 3 * 4 4 * Author: Emran Ahmed ( emran.bd.08@gmail.com ) 5 * Date: 10/2 0/2026, 10:08:09PM5 * Date: 10/27/2026, 7:35:16 PM 6 6 * Released under the GPLv3 license. 7 7 */ -
woo-variation-swatches/trunk/changelog.txt
r3757070 r3768706 1 1 *** Variation Swatches for WooCommerce *** 2 2 3 = 2.6.0 - 20-10-2026 = 3 27-10-2026 - version 2.6.1 4 5 * Fixed: Empty Variation Product Issue fixed. 6 * Tweak: Auto Deactivate In compatible pro version. 7 8 20-10-2026 - version 2.6.0 4 9 5 10 * Added: Minimum WordPress version raised to 6.8 … … 15 20 * Tweak: Use the core `wp-color-picker` in admin instead of `wp-color-picker-alpha` 16 21 17 = 2.5.0 - 17-09-2026 = 22 17-09-2026 - version 2.5.0 18 23 19 24 * Added: WC 11.1+ compatibility. … … 21 26 * Added: Attribute label change shape style. 22 27 23 = 2.4.0 - 19-08-2026 = 28 19-08-2026 - version 2.4.0 24 29 25 30 * Added - WP 7.1+ compatibility. -
woo-variation-swatches/trunk/includes/class-woo-variation-swatches-attribute-fields.php
r3757070 r3768706 57 57 public function save_attribute_fields($attribute_id): void { 58 58 59 if ( isset( $_POST[$this->option] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing -- nonce is already verified by woocommerce59 if ( isset( $_POST[$this->option] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce is already verified by woocommerce 60 60 61 61 $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 233 233 * @since 3.4.0 234 234 */ 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. 236 236 } 237 237 } -
woo-variation-swatches/trunk/includes/class-woo-variation-swatches-product-page.php
r3757070 r3768706 162 162 } 163 163 164 public function get_variation_threshold_max( $product ) {164 public function get_variation_threshold_max( $product ): int { 165 165 return absint( apply_filters( 'woo_variation_swatches_global_ajax_variation_threshold_max', 100, $product ) ); 166 166 } … … 264 264 } 265 265 266 public function inline_svg( $content ) {266 public function inline_svg( $content ): string { 267 267 return sprintf( 'url("data:image/svg+xml;utf8,%s")', $this->inline_svg_encode( $content ) ); 268 268 } 269 269 270 public function implode_css_property_value( $raw_properties ) {270 public function implode_css_property_value( $raw_properties ): string { 271 271 $properties = array(); 272 272 foreach ( $raw_properties as $name => $value ) { … … 347 347 } 348 348 349 public function is_archive( $data ) {349 public function is_archive( $data ): bool { 350 350 return isset( $data[ 'is_archive' ] ) && wc_string_to_bool( $data[ 'is_archive' ] ); 351 351 } … … 384 384 } 385 385 386 public function wrapper_start( $args, $attribute, $product, $attribute_type, $options ) {386 public function wrapper_start( $args, $attribute, $product, $attribute_type, $options ): string { 387 387 388 388 $html_attributes = $this->wrapper_html_attribute( $args, $attribute, $product, $attribute_type, $options ); … … 391 391 } 392 392 393 public function wrapper_end() {393 public function wrapper_end(): string { 394 394 return '</ul>'; 395 395 } … … 456 456 } 457 457 458 public function item_end() {458 public function item_end(): string { 459 459 460 460 $html = ''; … … 553 553 } 554 554 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 { 556 556 557 557 $assigned = array(); … … 768 768 } 769 769 770 public function get_variation_img_src( $image_id, $image_size ) {770 public function get_variation_img_src( $image_id, $image_size ): array { 771 771 $image = array( 772 772 'src' => woo_variation_swatches()->images_url( '/placeholder.png' ), … … 908 908 $product = $args[ 'product' ]; 909 909 $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 ); 912 912 $class = $args[ 'class' ]; 913 913 $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. 915 915 916 916 if ( empty( $options ) && ! empty( $product ) && ! empty( $attribute ) ) { -
woo-variation-swatches/trunk/languages/woo-variation-swatches.pot
r3757070 r3768706 8 8 "Content-Transfer-Encoding: 8bit\n" 9 9 "Language-Team: Emran Ahmed <emran.bd.08@gmail.com>\n" 10 "POT-Creation-Date: 2026-10-2 0 16:08+0000\n"10 "POT-Creation-Date: 2026-10-27 13:35+0000\n" 11 11 "X-Poedit-Basepath: ..\n" 12 12 "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" … … 1066 1066 1067 1067 #. translators: %s: Pro Plugin Version 1068 #: ../woo-variation-swatches.php:14 01068 #: ../woo-variation-swatches.php:144 1069 1069 msgid "You are running older version of \"Variation Swatches for WooCommerce - Pro\". Please upgrade to %s or upper and continue." 1070 1070 msgstr "" 1071 1071 1072 1072 #. translators: %s: Pro Plugin Version 1073 #: ../woo-variation-swatches.php:1 581073 #: ../woo-variation-swatches.php:162 1074 1074 msgid "You are running older version of \"Variation Swatches for WooCommerce - Pro\". Please upgrade to %s or upper." 1075 1075 msgstr "" -
woo-variation-swatches/trunk/woo-variation-swatches.php
r3757070 r3768706 5 5 * Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 8.0+ 6 6 * Author: Emran Ahmed 7 * Version: 2.6. 07 * Version: 2.6.1 8 8 * Requires PHP: 7.4 9 9 * Requires at least: 6.8 … … 22 22 23 23 if ( ! 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' ); 25 25 } 26 26 … … 81 81 } 82 82 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 83 87 if ( function_exists( 'woo_variation_swatches_pro' ) && woo_variation_swatches_using_correct_pro_version() ) { 84 88 return woo_variation_swatches_pro(); … … 122 126 add_action('admin_notices', 'woo_variation_swatches_deactivate_notice_pro'); 123 127 // 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 ); 125 129 } 126 130 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)