Parent order link in subscription details box, below the subscription status dropdown is incorrect when HPOS is enabled with WC orders as authoritative and sync off, specific to this configuration.
This problem is because we call get_edit_post_link()here and since the parent order in the posts table is a post with typeshop_order_placehold, the _edit_link is an empty string.
How to test this PR
Enable HPOS, choose WC orders table as the authoritative data store, and set sync off.
With base branch, the parent order link below the Subscription status dropdown is empty so clicking it will just reload the same page (the subscription edit page). With head branch, the link will bring to the subscription's parent order edit page.
Product impact
[x] Added changelog entry (or does not apply)
[x] Will this PR affect WooCommerce Subscriptions? yes
[x] Will this PR affect WooCommerce Payments? yes
[x] Added deprecated functions, hooks or classes to the spreadsheet
Fixes #371
Description
Parent order link in subscription details box, below the subscription status dropdown is incorrect when HPOS is enabled with WC orders as authoritative and sync off, specific to this configuration.
This problem is because we call
get_edit_post_link()
here and since the parent order in the posts table is a post with typeshop_order_placehold
, the _edit_link is an empty string.How to test this PR
Product impact