Plugin Directory

Changeset 3454213


Ignore:
Timestamp:
02/05/2026 01:54:39 AM (2 weeks ago)
Author:
mewz
Message:

Release v2.2.7

Location:
attribute-stock-for-woocommerce/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • attribute-stock-for-woocommerce/trunk/attribute-stock-for-woocommerce.php

    r3432807 r3454213  
    44 * Plugin URI:  https://codecanyon.net/item/woocommerce-attribute-stock/25796765
    55 * 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.6
     6 * Version:     2.2.7
    77 * Author:      Mewz
    88 * Author URI:  https://mewz.dev/
     
    2424}
    2525
    26 const MEWZ_WCAS_VERSION = '2.2.6';
     26const MEWZ_WCAS_VERSION = '2.2.7';
    2727const MEWZ_WCAS_NAME = 'Attribute Stock for WooCommerce';
    2828const MEWZ_WCAS_SLUG = 'woocommerce-attribute-stock';
  • attribute-stock-for-woocommerce/trunk/languages/woocommerce-attribute-stock.pot

    r3432807 r3454213  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Attribute Stock 2.2.6\n"
     5"Project-Id-Version: WooCommerce Attribute Stock 2.2.7\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-attribute-stock\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: 2026-01-05T16:27:58+02:00\n"
     12"POT-Creation-Date: 2026-02-05T03:47:11+02:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    637637msgstr ""
    638638
    639 #: src/Util/Orders.php:467
     639#: src/Util/Orders.php:465
    640640#, php-format
    641641msgctxt "order note line format"
  • attribute-stock-for-woocommerce/trunk/readme.txt

    r3432807 r3454213  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 2.2.6
     7Stable tag: 2.2.7
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    110110== Changelog ==
    111111
    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) =
    113119- WordPress 6.9 compatibility.
    114120- WooCommerce 10.4 compatibility.
  • attribute-stock-for-woocommerce/trunk/src/Aspects/Common/CleanUp.php

    r3432807 r3454213  
    2424        add_action('updated_term_meta', [$this, 'clear_term_meta_cache'], 10, 4);
    2525        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);
    2727
    2828        // delete associated data
     
    104104    }
    105105
    106     public function clear_product_page_cache($product_ids)
     106    public function clear_product_page_cache($product_id, $product)
    107107    {
    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;
    111110
    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        }
    115115
    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);
    120119    }
    121120
  • attribute-stock-for-woocommerce/trunk/src/Util/Orders.php

    r3135163 r3454213  
    416416    {
    417417        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);
    421419        }
    422420
  • attribute-stock-for-woocommerce/trunk/vendor/composer/installed.php

    r3432807 r3454213  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'e0abba14cda75a8b3e81cbcbb0313d17b18c1269',
     6        'reference' => 'ffdace811d5712f34e02aec747dcd634c8b94368',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => 'e0abba14cda75a8b3e81cbcbb0313d17b18c1269',
     34            'reference' => 'ffdace811d5712f34e02aec747dcd634c8b94368',
    3535            'type' => 'wordpress-plugin',
    3636            'install_path' => __DIR__ . '/../../',
  • attribute-stock-for-woocommerce/trunk/vendor/mewz/framework/languages/mewz-framework.pot

    r3432807 r3454213  
    88"Content-Type: text/plain; charset=UTF-8\n"
    99"Content-Transfer-Encoding: 8bit\n"
    10 "POT-Creation-Date: 2026-01-05T16:27:59+02:00\n"
     10"POT-Creation-Date: 2026-02-05T03:47:12+02:00\n"
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1212"X-Generator: WP-CLI 2.12.0\n"
  • attribute-stock-for-woocommerce/trunk/vendor/mewz/framework/src/Core/Authorizer.php

    r3106385 r3454213  
    5656        }
    5757
    58         if (strlen($envato->get_refresh_token()) === 32) {
     58        if (strlen($envato->get_refresh_token()) >= 32) {
    5959            return;
    6060        }
Note: See TracChangeset for help on using the changeset viewer.