Changeset 3454213
- Timestamp:
- 02/05/2026 01:54:39 AM (2 weeks ago)
- Location:
- attribute-stock-for-woocommerce/trunk
- Files:
-
- 8 edited
-
attribute-stock-for-woocommerce.php (modified) (2 diffs)
-
languages/woocommerce-attribute-stock.pot (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
src/Aspects/Common/CleanUp.php (modified) (2 diffs)
-
src/Util/Orders.php (modified) (1 diff)
-
vendor/composer/installed.php (modified) (2 diffs)
-
vendor/mewz/framework/languages/mewz-framework.pot (modified) (1 diff)
-
vendor/mewz/framework/src/Core/Authorizer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
attribute-stock-for-woocommerce/trunk/attribute-stock-for-woocommerce.php
r3432807 r3454213 4 4 * Plugin URI: https://codecanyon.net/item/woocommerce-attribute-stock/25796765 5 5 * Description: Take your stock to the next level. Set up complex stock configurations with ease. Shared stock, variable quantities, the possibilities are endless. 6 * Version: 2.2. 66 * Version: 2.2.7 7 7 * Author: Mewz 8 8 * Author URI: https://mewz.dev/ … … 24 24 } 25 25 26 const MEWZ_WCAS_VERSION = '2.2. 6';26 const MEWZ_WCAS_VERSION = '2.2.7'; 27 27 const MEWZ_WCAS_NAME = 'Attribute Stock for WooCommerce'; 28 28 const MEWZ_WCAS_SLUG = 'woocommerce-attribute-stock'; -
attribute-stock-for-woocommerce/trunk/languages/woocommerce-attribute-stock.pot
r3432807 r3454213 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Attribute Stock 2.2. 6\n"5 "Project-Id-Version: WooCommerce Attribute Stock 2.2.7\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-attribute-stock\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-05T16:27:58+02:00\n"12 "POT-Creation-Date: 2026-02-05T03:47:11+02:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 637 637 msgstr "" 638 638 639 #: src/Util/Orders.php:46 7639 #: src/Util/Orders.php:465 640 640 #, php-format 641 641 msgctxt "order note line format" -
attribute-stock-for-woocommerce/trunk/readme.txt
r3432807 r3454213 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.2. 67 Stable tag: 2.2.7 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 110 110 == Changelog == 111 111 112 = 2.2.6 (2025-09-16) = 112 = 2.2.7 (2026-02-05) = 113 - Fixed Envato OAuth authorization. 114 - Fixed order creation date changing when using HPOS. 115 - Fixed various stock status issues when using variable product-level stock with multipliers. 116 - Improved selective clearing of product page cache. 117 118 = 2.2.6 (2026-01-06) = 113 119 - WordPress 6.9 compatibility. 114 120 - WooCommerce 10.4 compatibility. -
attribute-stock-for-woocommerce/trunk/src/Aspects/Common/CleanUp.php
r3432807 r3454213 24 24 add_action('updated_term_meta', [$this, 'clear_term_meta_cache'], 10, 4); 25 25 add_action('deleted_term_meta', [$this, 'clear_term_meta_cache'], 10, 4); 26 add_action('mewz_wcas_product_stock_ affected', [$this, 'clear_product_page_cache'], 0);26 add_action('mewz_wcas_product_stock_changed', [$this, 'clear_product_page_cache'], 10, 2); 27 27 28 28 // delete associated data … … 104 104 } 105 105 106 public function clear_product_page_cache($product_id s)106 public function clear_product_page_cache($product_id, $product) 107 107 { 108 foreach ($product_ids as $product_id) { 109 $post = get_post($product_id); 110 if (!$post) continue; 108 $post = get_post($product_id); 109 if (!$post) return; 111 110 112 if ($post->post_parent > 0) { 113 $post = get_post($post->post_parent); 114 } 111 if ($post->post_parent > 0) { 112 $post = get_post($post->post_parent); 113 if (!$post) return; 114 } 115 115 116 // we only want to indicate that the product page cache should be cleared, 117 // we don't need to clear the full post cache for stock changes 118 do_action('clean_post_cache', $post->ID, $post); 119 } 116 // we only want to indicate that the product page cache should be cleared, 117 // we don't need to clear the full post cache for stock changes 118 do_action('clean_post_cache', $post->ID, $post); 120 119 } 121 120 -
attribute-stock-for-woocommerce/trunk/src/Util/Orders.php
r3135163 r3454213 416 416 { 417 417 if (!$order instanceof \WC_Order) { 418 $order_id = (int)$order; 419 $order = new \WC_Order(); 420 $order->set_id($order_id); 418 $order = wc_get_order((int)$order); 421 419 } 422 420 -
attribute-stock-for-woocommerce/trunk/vendor/composer/installed.php
r3432807 r3454213 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' e0abba14cda75a8b3e81cbcbb0313d17b18c1269',6 'reference' => 'ffdace811d5712f34e02aec747dcd634c8b94368', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 'reference' => ' e0abba14cda75a8b3e81cbcbb0313d17b18c1269',34 'reference' => 'ffdace811d5712f34e02aec747dcd634c8b94368', 35 35 'type' => 'wordpress-plugin', 36 36 'install_path' => __DIR__ . '/../../', -
attribute-stock-for-woocommerce/trunk/vendor/mewz/framework/languages/mewz-framework.pot
r3432807 r3454213 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 9 "Content-Transfer-Encoding: 8bit\n" 10 "POT-Creation-Date: 2026-0 1-05T16:27:59+02:00\n"10 "POT-Creation-Date: 2026-02-05T03:47:12+02:00\n" 11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12 12 "X-Generator: WP-CLI 2.12.0\n" -
attribute-stock-for-woocommerce/trunk/vendor/mewz/framework/src/Core/Authorizer.php
r3106385 r3454213 56 56 } 57 57 58 if (strlen($envato->get_refresh_token()) === 32) {58 if (strlen($envato->get_refresh_token()) >= 32) { 59 59 return; 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.