New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI router broken for some commands #14750
Comments
@justinshreve any idea if this should be working? I cannot get it working either. |
I think I found it. The commands expect a zone_id, but it isn't in the $supported_ids array (and therefore won't show in the usage text) It will work if we add the and fix the broken route texts by replacing Note: I haven't tested normal REST functionality, so I don't know if this breaks something |
I haven't dug further but yeah it looks like that ID/route format needs added to the CLI runner. I'm not sure if we need to change the route on the API side -- it would be nicer to fix in the CLI runner code. |
See #14787 |
CLI won't handle these commands:
wp wc --user=test shipping_zone_method list
wp wc --user=test shipping_zone_method get 0
wp wc --user=test shipping_zone_location list
wp wc --user=test shipping_zone get 0
They all echo:
Error: No route was found matching the URL and request method {"status":404}
WooCommerce 3.0.4
WordPress 4.7.4
The text was updated successfully, but these errors were encountered: