move suggestions class into admin/ and require from admin::includes
This commit is contained in:
parent
71250c30a2
commit
4c8436122f
|
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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' ) ) {
|
||||
|
|
Loading…
Reference in New Issue