mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #812 from woocommerce/PCP-897-error-on-tracking-metaboxes
Pass the WC_Order ID instead of the WP_Post object ID
This commit is contained in:
commit
5f972f57eb
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class MetaBoxRenderer {
|
|||
return;
|
||||
}
|
||||
|
||||
$tracking_info = $this->order_tracking_endpoint->get_tracking_information( $post->ID );
|
||||
$tracking_info = $this->order_tracking_endpoint->get_tracking_information( $wc_order->get_id() );
|
||||
|
||||
$tracking_is_not_added = empty( $tracking_info );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue