Fixed controller for order notes
This commit is contained in:
parent
f10846277b
commit
9ba3747b74
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue