WC_Data needs to be loaded before the customer class is loaded.

This commit is contained in:
Justin Shreve 2016-03-17 10:35:25 -07:00
parent f5a43e7025
commit 626ab000f5
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* @category Class
* @author WooThemes
*/
abstract class WC_Legacy_Customer extends WC_Data {
abstract class WC_Legacy_Customer extends WC_Data {
/**
* __isset legacy.

View File

@ -234,6 +234,8 @@ final class WooCommerce {
include_once( 'includes/class-wc-post-data.php' );
include_once( 'includes/class-wc-ajax.php' );
include_once( 'includes/abstracts/abstract-wc-data.php' ); // WC_Data for CRUD
if ( $this->is_request( 'admin' ) ) {
include_once( 'includes/admin/class-wc-admin.php' );
}
@ -255,7 +257,6 @@ final class WooCommerce {
include_once( 'includes/class-wc-auth.php' ); // Auth Class
include_once( 'includes/class-wc-post-types.php' ); // Registers post types
include_once( 'includes/abstracts/abstract-wc-data.php' ); // WC_Data for CRUD
include_once( 'includes/abstracts/abstract-wc-payment-token.php' ); // Payment Tokens
include_once( 'includes/abstracts/abstract-wc-product.php' ); // Products
include_once( 'includes/abstracts/abstract-wc-order.php' ); // Orders