Ensure product exists on downloads information.
This commit is contained in:
parent
e81882e475
commit
056473d681
|
@ -41,7 +41,7 @@ function woocommerce_order_downloads_meta_box() {
|
|||
}
|
||||
|
||||
// don't show permissions to files that have since been removed
|
||||
if ( ! $product->exists() || ! $product->has_file( $download->download_id ) )
|
||||
if ( ! $product || ! $product->exists() || ! $product->has_file( $download->download_id ) )
|
||||
continue;
|
||||
|
||||
include( 'order-download-permission-html.php' );
|
||||
|
|
Loading…
Reference in New Issue