move suggestions class into admin/ and require from admin::includes

This commit is contained in:
haszari 2019-02-21 12:44:21 +13:00
parent 71250c30a2
commit 4c8436122f
3 changed files with 3 additions and 5 deletions

View File

@ -85,6 +85,9 @@ class WC_Admin {
include_once dirname( __FILE__ ) . '/helper/class-wc-helper-plugin-info.php';
include_once dirname( __FILE__ ) . '/helper/class-wc-helper-compat.php';
include_once dirname( __FILE__ ) . '/helper/class-wc-helper.php';
// Marketplace suggestions & related REST API.
include_once dirname( __FILE__ ) . '/marketplace-suggestions/class-wc-marketplace-suggestions.php';
}
/**

View File

@ -384,11 +384,6 @@ final class WooCommerce {
if ( $this->is_request( 'admin' ) ) {
include_once WC_ABSPATH . 'includes/admin/class-wc-admin.php';
/**
* Marketplace suggestions & related REST API.
*/
include_once WC_ABSPATH . 'includes/marketplace-suggestions/class-wc-marketplace-suggestions.php';
}
if ( $this->is_request( 'frontend' ) ) {