diff --git a/includes/api/class-wc-rest-settings-options-controller.php b/includes/api/class-wc-rest-setting-options-controller.php similarity index 99% rename from includes/api/class-wc-rest-settings-options-controller.php rename to includes/api/class-wc-rest-setting-options-controller.php index 242227e171b..96fd48b7bbe 100644 --- a/includes/api/class-wc-rest-settings-options-controller.php +++ b/includes/api/class-wc-rest-setting-options-controller.php @@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) { * @package WooCommerce/API * @extends WC_REST_Controller */ -class WC_REST_Settings_Options_Controller extends WC_REST_Controller { +class WC_REST_Setting_Options_Controller extends WC_REST_Controller { /** * WP REST API namespace/version. diff --git a/includes/class-wc-api.php b/includes/class-wc-api.php index 072693e7b27..6b3a5b133f7 100644 --- a/includes/class-wc-api.php +++ b/includes/class-wc-api.php @@ -189,7 +189,7 @@ class WC_API extends WC_Legacy_API { include_once( dirname( __FILE__ ) . '/api/class-wc-rest-report-top-sellers-controller.php' ); include_once( dirname( __FILE__ ) . '/api/class-wc-rest-reports-controller.php' ); include_once( dirname( __FILE__ ) . '/api/class-wc-rest-settings-controller.php' ); - include_once( dirname( __FILE__ ) . '/api/class-wc-rest-settings-options-controller.php' ); + include_once( dirname( __FILE__ ) . '/api/class-wc-rest-setting-options-controller.php' ); include_once( dirname( __FILE__ ) . '/api/class-wc-rest-shipping-zones-controller.php' ); include_once( dirname( __FILE__ ) . '/api/class-wc-rest-shipping-zone-locations-controller.php' ); include_once( dirname( __FILE__ ) . '/api/class-wc-rest-shipping-zone-methods-controller.php' ); @@ -253,7 +253,7 @@ class WC_API extends WC_Legacy_API { 'WC_REST_Report_Top_Sellers_Controller', 'WC_REST_Reports_Controller', 'WC_REST_Settings_Controller', - 'WC_REST_Settings_Options_Controller', + 'WC_REST_Setting_Options_Controller', 'WC_REST_Shipping_Zones_Controller', 'WC_REST_Shipping_Zone_Locations_Controller', 'WC_REST_Shipping_Zone_Methods_Controller', diff --git a/tests/unit-tests/api/settings.php b/tests/unit-tests/api/settings.php index 6a95edffed6..cb1192ab4ed 100644 --- a/tests/unit-tests/api/settings.php +++ b/tests/unit-tests/api/settings.php @@ -13,7 +13,7 @@ class Settings extends WC_REST_Unit_Test_Case { */ public function setUp() { parent::setUp(); - $this->endpoint = new WC_REST_Settings_Options_Controller(); + $this->endpoint = new WC_REST_Setting_Options_Controller(); WC_Helper_Settings::register(); $this->user = $this->factory->user->create( array( 'role' => 'administrator',