Closed james-allan closed 2 months ago
I still have an error in my log on this branch:
Interesting. I'm not sure why I wasn't getting that issue given I was getting the other errors with table names being treated as strings.
Thanks for the commit. 😄
Fixes https://github.com/woocommerce/woocommerce-subscriptions/issues/4576
Description
There was an issue when ordering the subscriptions list table by the subscriptions last payment date when using HPOS.
After spending a lot of time trying to narrow down the cause of generic database errors I found that it was mostly caused by using strings as table names eg
'wp_wc_orders'
vs justwp_wc_orders
.This PR fixes that and makes some additional minor changes to table alias etc.
How to test this PR
trunk
you will see no results and the following database error.Product impact