Closed shendy-a8c closed 1 year ago
As I worked on https://github.com/Automattic/woocommerce-subscriptions-core/pull/378 I found that get_edit_post_link() will return empty string if HPOS is on with sync off because _edit_link is an empty string.
get_edit_post_link()
Therefore, I searched for other get_edit_post_link()'s in the codebase and there is this one left in maybe_show_admin_notice().
maybe_show_admin_notice()
add_option( WC_Subscriptions_Admin::$option_prefix . '_failed_scheduled_actions', [ [ 'type' => 'type', 'args' => [ 'subscription_id' => 40 ] ], [ 'type' => 'type', 'args' => [ 'order_id' => 39 ], ] ] );
Change the value of subscription_id and order_id.
subscription_id
order_id
delete_option( WC_Subscriptions_Admin::$option_prefix . '_failed_scheduled_actions' );
Description
As I worked on https://github.com/Automattic/woocommerce-subscriptions-core/pull/378 I found that
get_edit_post_link()
will return empty string if HPOS is on with sync off because _edit_link is an empty string.Therefore, I searched for other
get_edit_post_link()
's in the codebase and there is this one left inmaybe_show_admin_notice()
.How to test this PR
Change the value of
subscription_id
andorder_id
.Product impact