Skip reports if no product is found
This commit is contained in:
parent
84c96046f0
commit
e14eb70814
|
@ -80,6 +80,10 @@ class WC_Report_Stock extends WP_List_Table {
|
|||
$product = wc_get_product( $item->id );
|
||||
}
|
||||
|
||||
if ( ! $product ) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch ( $column_name ) {
|
||||
|
||||
case 'product' :
|
||||
|
|
Loading…
Reference in New Issue