Plugin Directory

Changeset 3087088


Ignore:
Timestamp:
05/15/2024 11:07:43 AM (19 months ago)
Author:
konamiman
Message:

PR 11: Fix fatal error when checking if HPOS is enabled (introduced in v1.0.2)

Location:
woocommerce-legacy-rest-api/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-legacy-rest-api/trunk/includes/class-wc-legacy-rest-api-plugin.php

    r3086929 r3087088  
    100100     * @returns bool True if HPOS is currently in use.
    101101     */
    102     private function hpos_is_enabled(): bool {
     102    private static function hpos_is_enabled(): bool {
    103103        return class_exists( '\Automattic\WooCommerce\Utilities\OrderUtil' ) && \Automattic\WooCommerce\Utilities\OrderUtil::custom_orders_table_usage_is_enabled();
    104104    }
  • woocommerce-legacy-rest-api/trunk/readme.txt

    r3086929 r3087088  
    55Tested up to: 6.3
    66Requires PHP: 7.4
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    4848The notice will appear if the orders table is (or has been) selected as the orders data store in the WooCommerce features settings page,
    4949and will disappear when that ceases to be true. Once the notice is dismissed it will never appear again.
     50
     51
     52= 1.0.3 2024-05-15
     53
     54Fix a bug introduced in 1.0.2 that caused a fatal error when checking if HPOS is enabled.
  • woocommerce-legacy-rest-api/trunk/woocommerce-legacy-rest-api.php

    r3086929 r3087088  
    44 * Plugin URI: https://github.com/woocommerce/woocommerce-legacy-rest-api
    55 * Description: The legacy WooCommerce REST API, which used to be part of WooCommerce itself but is removed as of WooCommerce 9.0.
    6  * Version: 1.0.2
     6 * Version: 1.0.3
    77 * Author: WooCommerce
    88 * Author URI: https://woocommerce.com
Note: See TracChangeset for help on using the changeset viewer.