From 1b71184f2346f9c6f359db1d9f0f66728f7a5aca Mon Sep 17 00:00:00 2001 From: Peter Fabian Date: Mon, 17 Sep 2018 20:36:29 +0200 Subject: [PATCH] Updated path to background process class. --- .../data-stores/class-wc-admin-reports-orders-data-store.php | 2 +- plugins/woocommerce-admin/wc-admin.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-orders-data-store.php b/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-orders-data-store.php index 6f1bb8fb4cf..131de190c59 100644 --- a/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-orders-data-store.php +++ b/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-orders-data-store.php @@ -8,7 +8,7 @@ defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'WC_Admin_Order_Stats_Background_Process', false ) ) { - include_once WC_ABSPATH . 'includes/class-wc-admin-order-stats-background-process.php'; + include_once WC_ADMIN_ABSPATH . '/includes/class-wc-admin-order-stats-background-process.php'; } /** diff --git a/plugins/woocommerce-admin/wc-admin.php b/plugins/woocommerce-admin/wc-admin.php index b59618c29e3..8426a7a706f 100755 --- a/plugins/woocommerce-admin/wc-admin.php +++ b/plugins/woocommerce-admin/wc-admin.php @@ -16,6 +16,10 @@ if ( ! defined( 'WC_ADMIN_APP' ) ) { define( 'WC_ADMIN_APP', 'wc-admin-app' ); } +if ( ! defined( 'WC_ADMIN_ABSPATH' ) ) { + define( 'WC_ADMIN_ABSPATH', dirname( __FILE__ ) ); +} + /** * Notify users of the plugin requirements */