Fixed controller for order notes

This commit is contained in:
Claudio Sanches 2016-02-23 15:34:14 -03:00
parent f10846277b
commit 9ba3747b74
1 changed files with 1 additions and 8 deletions

View File

@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* @package WooCommerce/API * @package WooCommerce/API
* @extends WC_REST_Posts_Controller * @extends WC_REST_Posts_Controller
*/ */
class WC_REST_Order_Notes_Controller extends WC_REST_Posts_Controller { class WC_REST_Order_Notes_Controller extends WP_REST_Controller {
/** /**
* Route base. * Route base.
@ -29,13 +29,6 @@ class WC_REST_Order_Notes_Controller extends WC_REST_Posts_Controller {
*/ */
protected $rest_base = 'orders/(?P<order_id>[\d]+)/notes'; protected $rest_base = 'orders/(?P<order_id>[\d]+)/notes';
/**
* Post type.
*
* @var string
*/
protected $post_type = 'order_note';
/** /**
* Register the routes for order notes. * Register the routes for order notes.
*/ */