From 73228a59ed04cfe3f7d2baf5f50bc776e1ec30dd Mon Sep 17 00:00:00 2001 From: Vedanshu Jain Date: Thu, 19 Sep 2024 17:00:07 +0530 Subject: [PATCH] Add more classes to autoload list. --- .../woocommerce/includes/class-wc-autoloader.php | 13 ++++++++++++- plugins/woocommerce/includes/class-woocommerce.php | 13 +------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/plugins/woocommerce/includes/class-wc-autoloader.php b/plugins/woocommerce/includes/class-wc-autoloader.php index 964a8fbb565..59d8a9b4d7d 100644 --- a/plugins/woocommerce/includes/class-wc-autoloader.php +++ b/plugins/woocommerce/includes/class-wc-autoloader.php @@ -84,7 +84,18 @@ class WC_Autoloader { 'WC_Background_Process' => WC_ABSPATH . 'includes/abstracts/class-wc-background-process.php', 'WC_Deprecated_Filter_Hooks' => WC_ABSPATH . 'includes/class-wc-deprecated-filter-hooks.php', 'WC_Deprecated_Action_Hooks' => WC_ABSPATH . 'includes/class-wc-deprecated-action-hooks.php', - + 'WC_Payment_Gateway_ECheck' => WC_ABSPATH . 'includes/gateways/class-wc-payment-gateway-echeck.php', + 'WC_Payment_Gateway_CC' => WC_ABSPATH . 'includes/gateways/class-wc-payment-gateway-cc.php', + 'WC_Shipping_Zones' => WC_ABSPATH . 'includes/class-wc-shipping-zones.php', + 'WC_Payment_Tokens' => WC_ABSPATH . 'includes/class-wc-payment-tokens.php', + 'WC_Product_Query' => WC_ABSPATH . 'includes/class-wc-product-query.php', + 'WC_Product_Factory' => WC_ABSPATH . 'includes/class-wc-product-factory.php', + 'WC_Order_Query' => WC_ABSPATH . 'includes/class-wc-order-query.php', + 'WC_Order_Factory' => WC_ABSPATH . 'includes/class-wc-order-factory.php', + 'WC_Meta_Data' => WC_ABSPATH . 'includes/class-wc-meta-data.php', + 'WC_Query' => WC_ABSPATH . 'includes/class-wc-query.php', + 'WC_Data_Exception' => WC_ABSPATH . 'includes/class-wc-data-exception.php', + 'WC_Emails' => WC_ABSPATH . 'includes/class-wc-emails.php', ); /** diff --git a/plugins/woocommerce/includes/class-woocommerce.php b/plugins/woocommerce/includes/class-woocommerce.php index 10989455d4c..186e9c9238a 100644 --- a/plugins/woocommerce/includes/class-woocommerce.php +++ b/plugins/woocommerce/includes/class-woocommerce.php @@ -625,18 +625,7 @@ final class WooCommerce { include_once WC_ABSPATH . 'includes/class-wc-comments.php'; include_once WC_ABSPATH . 'includes/class-wc-post-data.php'; include_once WC_ABSPATH . 'includes/class-wc-ajax.php'; - include_once WC_ABSPATH . 'includes/class-wc-emails.php'; - include_once WC_ABSPATH . 'includes/class-wc-data-exception.php'; - include_once WC_ABSPATH . 'includes/class-wc-query.php'; - include_once WC_ABSPATH . 'includes/class-wc-meta-data.php'; - include_once WC_ABSPATH . 'includes/class-wc-order-factory.php'; - include_once WC_ABSPATH . 'includes/class-wc-order-query.php'; - include_once WC_ABSPATH . 'includes/class-wc-product-factory.php'; - include_once WC_ABSPATH . 'includes/class-wc-product-query.php'; - include_once WC_ABSPATH . 'includes/class-wc-payment-tokens.php'; - include_once WC_ABSPATH . 'includes/class-wc-shipping-zone.php'; - include_once WC_ABSPATH . 'includes/gateways/class-wc-payment-gateway-cc.php'; - include_once WC_ABSPATH . 'includes/gateways/class-wc-payment-gateway-echeck.php'; + include_once WC_ABSPATH . 'includes/class-wc-countries.php'; include_once WC_ABSPATH . 'includes/class-wc-integrations.php'; include_once WC_ABSPATH . 'includes/class-wc-cache-helper.php';