Skip to content
This repository was archived by the owner on Oct 4, 2019. It is now read-only.

Conversation

ryelle
Copy link
Contributor

@ryelle ryelle commented Jun 28, 2017

I think the orders refund controller has the wrong parent class - I can't access /wc/v3/orders/46/refunds, but v2 still works. Based on the other endpoints, I've changed it to extends WC_REST_Order_Refunds_Controller.

To test:

  • Go to /wp-json/wc/v3/orders/:order/refunds
  • Before PR, this errors with rest_no_route, after PR the refunds are listed.

Copy link

@emdashcodes emdashcodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 and tested correctly.

@ryelle ryelle merged commit 218cf54 into master Jun 28, 2017
@ryelle ryelle deleted the fix/order-refunds-class-extend branch June 28, 2017 01:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants