From 690bd7da2b8fe1020903a4ab010c50bde63f351d Mon Sep 17 00:00:00 2001 From: louwie17 Date: Thu, 29 Jun 2023 17:00:04 -0300 Subject: [PATCH] Require wc-admin-functions into products tracking class (#39030) * Require wc-admin-functions into products tracking class * Add changelog * Revert old change back --- .../changelog/fix-38996_get_default_options_not_being_loaded | 4 ++++ .../includes/tracks/events/class-wc-products-tracking.php | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 plugins/woocommerce/changelog/fix-38996_get_default_options_not_being_loaded diff --git a/plugins/woocommerce/changelog/fix-38996_get_default_options_not_being_loaded b/plugins/woocommerce/changelog/fix-38996_get_default_options_not_being_loaded new file mode 100644 index 00000000000..cbbc4f01f10 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-38996_get_default_options_not_being_loaded @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Add missing require for a wc-admin helper function. diff --git a/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php b/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php index 05e6272133d..d96b722a980 100644 --- a/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php +++ b/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php @@ -10,6 +10,8 @@ use Automattic\WooCommerce\Internal\Admin\WCAdminAssets; defined( 'ABSPATH' ) || exit; +require_once WC_ABSPATH . 'includes/admin/wc-admin-functions.php'; + /** * This class adds actions to track usage of WooCommerce Products. */