diff --git a/includes/api/class-wc-api-coupons.php b/includes/api/class-wc-api-coupons.php index 447218e0322..300b35601e6 100644 --- a/includes/api/class-wc-api-coupons.php +++ b/includes/api/class-wc-api-coupons.php @@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -class WC_API_Coupons extends WC_API_Base { +class WC_API_Coupons extends WC_API_Resource { /** @var string $base the route base */ protected $base = '/coupons'; diff --git a/includes/api/class-wc-api-customers.php b/includes/api/class-wc-api-customers.php index a1ce47e36b1..85df176186d 100644 --- a/includes/api/class-wc-api-customers.php +++ b/includes/api/class-wc-api-customers.php @@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -class WC_API_Customers extends WC_API_Base { +class WC_API_Customers extends WC_API_Resource { /** @var string $base the route base */ protected $base = '/customers'; diff --git a/includes/api/class-wc-api-orders.php b/includes/api/class-wc-api-orders.php index de545ad266e..86ebb7ab2a9 100644 --- a/includes/api/class-wc-api-orders.php +++ b/includes/api/class-wc-api-orders.php @@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -class WC_API_Orders extends WC_API_Base { +class WC_API_Orders extends WC_API_Resource { /** @var string $base the route base */ protected $base = '/orders'; diff --git a/includes/api/class-wc-api-products.php b/includes/api/class-wc-api-products.php index e880ee775c4..2c0498e2f19 100644 --- a/includes/api/class-wc-api-products.php +++ b/includes/api/class-wc-api-products.php @@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -class WC_API_Products extends WC_API_Base { +class WC_API_Products extends WC_API_Resource { /** @var string $base the route base */ protected $base = '/products'; diff --git a/includes/api/class-wc-api-reports.php b/includes/api/class-wc-api-reports.php index 8a156bbf49f..eef5e99d73f 100644 --- a/includes/api/class-wc-api-reports.php +++ b/includes/api/class-wc-api-reports.php @@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -class WC_API_Reports extends WC_API_Base { +class WC_API_Reports extends WC_API_Resource { /** @var string $base the route base */ protected $base = '/reports'; diff --git a/includes/api/class-wc-api-base.php b/includes/api/class-wc-api-resource.php similarity index 98% rename from includes/api/class-wc-api-base.php rename to includes/api/class-wc-api-resource.php index 25f4adeb5ca..efae3e96e73 100644 --- a/includes/api/class-wc-api-base.php +++ b/includes/api/class-wc-api-resource.php @@ -1,6 +1,6 @@ authentication = new WC_API_Authentication(); - include_once( 'api/class-wc-api-base.php' ); + include_once( 'api/class-wc-api-resource.php' ); include_once( 'api/class-wc-api-orders.php' ); include_once( 'api/class-wc-api-products.php' ); include_once( 'api/class-wc-api-coupons.php' );