From faf86fad4e77b38a2b0e0b20f26d39401d505dbf Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Brito Date: Wed, 13 Nov 2024 10:44:00 +0000 Subject: [PATCH] Fix prevent strtotime PHP deprecated --- build/index.asset.php | 2 +- src/sdk/woocommerce.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/index.asset.php b/build/index.asset.php index 4e6bea1b..c9404732 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'f8b0e5c9a9c2730cd923'); + array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '5d39daeb20102fa0b480'); diff --git a/src/sdk/woocommerce.js b/src/sdk/woocommerce.js index 653b79b2..353579a7 100644 --- a/src/sdk/woocommerce.js +++ b/src/sdk/woocommerce.js @@ -7,7 +7,7 @@ import { WordPressSdk } from "./wordpress"; const Endpoints = { ORDERS: (period) => NewfoldRuntime.createApiUrl("/wc/v3/orders", period), ALL_TIME_ORDERS: NewfoldRuntime.createApiUrl("/wc/v3/orders"), - PRODUCTS: NewfoldRuntime.createApiUrl("/wc/store/products"), + PRODUCTS: NewfoldRuntime.createApiUrl("/wc/v3/products"), Analytics: { JETPACK: (range) => NewfoldRuntime.createApiUrl("/jetpack/v4/module/stats/data", { range }),