Rollback condition from delete flow as causes issues with no HPOS tables (#39625)
This commit is contained in:
commit
e62af256f2
|
@ -0,0 +1,5 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
Comment: Partial rollback of an earlier PR.
|
||||||
|
|
||||||
|
|
|
@ -667,10 +667,12 @@ ORDER BY orders.id ASC
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! $this->get_table_exists() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( $this->data_sync_is_enabled() ) {
|
if ( $this->data_sync_is_enabled() ) {
|
||||||
if ( $this->get_table_exists() ) {
|
$this->data_store->delete_order_data_from_custom_order_tables( $postid );
|
||||||
$this->data_store->delete_order_data_from_custom_order_tables( $postid );
|
|
||||||
}
|
|
||||||
} elseif ( $this->custom_orders_table_is_authoritative() ) {
|
} elseif ( $this->custom_orders_table_is_authoritative() ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue