From ce6fcdabbee99c7fd61e2caf5a7a2be7ea6379d8 Mon Sep 17 00:00:00 2001 From: ronakganatra9 Date: Tue, 26 Mar 2019 04:48:34 +0530 Subject: [PATCH] woocommerce/woocommerce-admin#1830 Fix/1830 move all note php files to subfolder (https://github.com/woocommerce/woocommerce-admin/pull/1879) * added notes/ folder and moved notes file in it.. * Path changes according to new folder. * typo correct --- .../includes/class-wc-admin-api-init.php | 4 ++-- .../includes/{ => notes}/class-wc-admin-note.php | 0 .../{ => notes}/class-wc-admin-notes-historical-data.php | 0 .../{ => notes}/class-wc-admin-notes-new-sales-record.php | 0 .../{ => notes}/class-wc-admin-notes-settings-notes.php | 0 .../class-wc-admin-notes-woo-subscriptions-notes.php | 0 .../includes/{ => notes}/class-wc-admin-notes.php | 0 plugins/woocommerce-admin/woocommerce-admin.php | 8 ++++---- 8 files changed, 6 insertions(+), 6 deletions(-) rename plugins/woocommerce-admin/includes/{ => notes}/class-wc-admin-note.php (100%) rename plugins/woocommerce-admin/includes/{ => notes}/class-wc-admin-notes-historical-data.php (100%) rename plugins/woocommerce-admin/includes/{ => notes}/class-wc-admin-notes-new-sales-record.php (100%) rename plugins/woocommerce-admin/includes/{ => notes}/class-wc-admin-notes-settings-notes.php (100%) rename plugins/woocommerce-admin/includes/{ => notes}/class-wc-admin-notes-woo-subscriptions-notes.php (100%) rename plugins/woocommerce-admin/includes/{ => notes}/class-wc-admin-notes.php (100%) diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-api-init.php b/plugins/woocommerce-admin/includes/class-wc-admin-api-init.php index 8c501ec5142..d46f31f4622 100644 --- a/plugins/woocommerce-admin/includes/class-wc-admin-api-init.php +++ b/plugins/woocommerce-admin/includes/class-wc-admin-api-init.php @@ -92,8 +92,8 @@ class WC_Admin_Api_Init { require_once WC_ADMIN_ABSPATH . '/includes/data-stores/class-wc-admin-notes-data-store.php'; // CRUD classes. - require_once WC_ADMIN_ABSPATH . '/includes/class-wc-admin-note.php'; - require_once WC_ADMIN_ABSPATH . '/includes/class-wc-admin-notes.php'; + require_once WC_ADMIN_ABSPATH . '/includes/notes/class-wc-admin-note.php'; + require_once WC_ADMIN_ABSPATH . '/includes/notes/class-wc-admin-notes.php'; } /** diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-note.php b/plugins/woocommerce-admin/includes/notes/class-wc-admin-note.php similarity index 100% rename from plugins/woocommerce-admin/includes/class-wc-admin-note.php rename to plugins/woocommerce-admin/includes/notes/class-wc-admin-note.php diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-notes-historical-data.php b/plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-historical-data.php similarity index 100% rename from plugins/woocommerce-admin/includes/class-wc-admin-notes-historical-data.php rename to plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-historical-data.php diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-notes-new-sales-record.php b/plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-new-sales-record.php similarity index 100% rename from plugins/woocommerce-admin/includes/class-wc-admin-notes-new-sales-record.php rename to plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-new-sales-record.php diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-notes-settings-notes.php b/plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-settings-notes.php similarity index 100% rename from plugins/woocommerce-admin/includes/class-wc-admin-notes-settings-notes.php rename to plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-settings-notes.php diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-notes-woo-subscriptions-notes.php b/plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-woo-subscriptions-notes.php similarity index 100% rename from plugins/woocommerce-admin/includes/class-wc-admin-notes-woo-subscriptions-notes.php rename to plugins/woocommerce-admin/includes/notes/class-wc-admin-notes-woo-subscriptions-notes.php diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-notes.php b/plugins/woocommerce-admin/includes/notes/class-wc-admin-notes.php similarity index 100% rename from plugins/woocommerce-admin/includes/class-wc-admin-notes.php rename to plugins/woocommerce-admin/includes/notes/class-wc-admin-notes.php diff --git a/plugins/woocommerce-admin/woocommerce-admin.php b/plugins/woocommerce-admin/woocommerce-admin.php index be98c19b60d..da06111a24b 100755 --- a/plugins/woocommerce-admin/woocommerce-admin.php +++ b/plugins/woocommerce-admin/woocommerce-admin.php @@ -156,10 +156,10 @@ function wc_admin_plugins_loaded() { require_once WC_ADMIN_ABSPATH . '/lib/common.php'; // Admin note providers. - require_once WC_ADMIN_ABSPATH . '/includes/class-wc-admin-notes-new-sales-record.php'; - require_once WC_ADMIN_ABSPATH . '/includes/class-wc-admin-notes-settings-notes.php'; - require_once WC_ADMIN_ABSPATH . '/includes/class-wc-admin-notes-woo-subscriptions-notes.php'; - require_once WC_ADMIN_ABSPATH . '/includes/class-wc-admin-notes-historical-data.php'; + require_once WC_ADMIN_ABSPATH . '/includes/notes/class-wc-admin-notes-new-sales-record.php'; + require_once WC_ADMIN_ABSPATH . '/includes/notes/class-wc-admin-notes-settings-notes.php'; + require_once WC_ADMIN_ABSPATH . '/includes/notes/class-wc-admin-notes-woo-subscriptions-notes.php'; + require_once WC_ADMIN_ABSPATH . '/includes/notes/class-wc-admin-notes-historical-data.php'; // Verify we have a proper build. if ( ! wc_admin_build_file_exists() ) {