Skip to content

Commit

Permalink
Move includes/class-wc-legacy-api.php to includes/legacy/class-wc-leg…
Browse files Browse the repository at this point in the history
…acy-api.php
  • Loading branch information
claudiosanches committed Oct 5, 2017
1 parent cef97eb commit 31f42ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/class-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public function includes() {
/**
* REST API.
*/
include_once( WC_ABSPATH . 'includes/class-wc-legacy-api.php' );
include_once( WC_ABSPATH . 'includes/legacy/class-wc-legacy-api.php' );
include_once( WC_ABSPATH . 'includes/class-wc-api.php' ); // API Class.
include_once( WC_ABSPATH . 'includes/class-wc-auth.php' ); // Auth Class.
include_once( WC_ABSPATH . 'includes/class-wc-register-wp-admin-settings.php' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
exit;
}

/**
* Legacy API.
*/
class WC_Legacy_API {

/**
Expand Down Expand Up @@ -41,6 +44,7 @@ class WC_Legacy_API {

/**
* Setup class.
*
* @since 2.0
*/
public function __construct() {
Expand All @@ -51,7 +55,7 @@ public function __construct() {
* Add new query vars.
*
* @since 2.0
* @param array $vars
* @param array $vars Vars.
* @return string[]
*/
public function add_query_vars( $vars ) {
Expand Down Expand Up @@ -151,7 +155,7 @@ public function includes() {
*
* @since 2.1
* @deprecated 2.6.0
* @param WC_API_Server $server the REST server
* @param WC_API_Server $server the REST server.
*/
public function register_resources( $server ) {

Expand Down

0 comments on commit 31f42ba

Please sign in to comment.